use CGI qw(:all); my $cgi = CGI->new; #### # import CGI's functions into my namespace use CGI qw(:all); print header, start_html( ... ), h1('HTML Body'), end_html; #### use CGI; # access CGI's functions as object methods my $cgi = CGI->new; print $cgi->header ... (yadda yadda)