Use object-oriented Perl5 syntax: |
use CGI; |
my $query = CGI->new(); # new query object |
my $val = $query->param(foo); |
or ordinary Perl4 function calls: |
use CGI qw(:standard); |
my $val = param(foo); |
With CGI.pm, it's easy to write self-contained CGI scripts: |
use CGI qw(:standard); |
if ( param() ) {
|
} else {
|
} |