When should I use Perl CGI instead of PHP (or vice versa)?

前端 未结 8 1526
悲哀的现实
悲哀的现实 2021-01-07 23:48

For hobby purposes, I have a shared space on a hosting server that is providing, as many of them are, both PHP and Perl CGI. I have read on several places that CGI scripts

8条回答
  •  粉色の甜心
    2021-01-08 00:26

    Try Catalyst with Template Toolkit.

    sub hello :Path('/hello') :Args(0) {
        my ( $self, $c ) = @_;
    
        # Hello World
        $c->response->body( $c->welcome_message );
    }
    
    
    
      
        [% title %]
      
       
        
    
        [% content %]
    
        
      
    
    

提交回复
热议问题