1 | Use object-oriented Perl5 syntax: |
2 | use CGI; |
3 | my $query = CGI->new(); # new query object |
4 | my $val = $query->param(foo); |
5 | or ordinary Perl4 function calls: |
6 | use CGI qw(:standard); |
7 | my $val = param(foo); |
8 | With CGI.pm, it's easy to write self-contained CGI scripts: |
9 | use CGI qw(:standard); |
10 |
if ( param() ) {
|
11 |
} else {
|
12 | } |