in reply to Why no bareword warnings while inside of BEGIN
JayBonci,
If you want to see it blow up you will have to do:
A BEGIN subroutine is executed as soon as possible, that is, the moment it is completely defined, even before the rest of the containing file is parsed.
If you want to see it blow up you will have to do:
From perldoc perlmodBEGIN { while( calldepth < 5 ) { last; } }
A BEGIN subroutine is executed as soon as possible, that is, the moment it is completely defined, even before the rest of the containing file is parsed.
You have put it into an infinite loop - never giving it a chance to throw the error.
Cheers - L~R
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Why no bareword warnings while inside of BEGIN (no)
by tye (Sage) on Mar 22, 2004 at 23:25 UTC | |
by Limbic~Region (Chancellor) on Mar 22, 2004 at 23:36 UTC |
In Section
Seekers of Perl Wisdom