- or download this
use strict;
use CGI;
...
# assign params to $template according to user input/validation
print $q->header, $template->output;
- or download this
use strict;
my $q = My::CGI->new;
...
package My::CGI;
use base qw(CGI);
sub h1 { "<42>$_[1]</42>" }
- or download this
perl -MCGI=foo -le "print foo{bar=>baz},qux"