$ perl -Mstrict -wle 'use CGI qw/:standard/; use CGI::Carp qw/fatalsToBrowser/; print header, h1("hello"); $test = 1' Content-type: text/html

Software error:

Global symbol "$test" requires explicit package name at -e line 1.
Execution of -e aborted due to compilation errors.

For help, please send mail to this site's webmaster, giving this error message and the time and date of the error. [Wed Dec 12 10:44:45 2001] -e: Global symbol "$test" requires explicit package name at -e line 1. [Wed Dec 12 10:44:45 2001] -e: Execution of -e aborted due to compilation errors.