in reply to CGI inconsistencies
my $date = localtime(); &print_date(); sub print_date { print "$date\n"; } [download]
If the server you're on runs mod_perl, this could cause the symptoms you describe.
-Matt