in reply to CGI.pm question

Try:
use CGI ':standard';
per the first section of the CGI.pm documentation.

Additionally, if you're using the CGI module, you can have it do your CGI headers (and even your HTML) for you:

use CGI ':standard'; print header, start_html(-title => 'CGI test'); print p('foo is ', param('foo'), '.'); print end_html;