sub foo { my $x= 'a' BEGIN; return ++$x; } #### my $haveCGI= eval { require CGI } BEGIN; #### eval "my $ARGV[0];" BEGIN;