use CGI; # access CGI's functions as object methods my $cgi = CGI->new; print $cgi->header ... (yadda yadda)