in reply to Re: Re: Re: Re: Aborting loading of file in a BEGIN block
in thread Aborting loading of file in a BEGIN block
See. the my variables section of Lexical scoping like a fox for more details.use strict; my $foo = "defined"; BEGIN { print "foo is ", defined($foo) ? $foo : 'undef', " during BEGIN phase\n"; }; print "foo is ", defined($foo) ? $foo : undef, " at runtime\n"; __output__ foo is undef during BEGIN phase foo is defined at runtime
_________
broquaint
|
---|