|
|
| There's more than one way to do things | |
| PerlMonks |
Re: Why no bareword warnings while inside of BEGINby ChemBoy (Priest) |
| on Mar 22, 2004 at 22:54 UTC ( #338810=note: print w/ replies, xml ) | Need Help?? |
|
I don't know the answer, but I suspect it has to do with the "run-as-soon-as-possible" nature of BEGIN blocks. One reason I suspect this is that if you change calldepth < 5 to calldepth > 5, you get a bareword error. Also, you get a bareword error (or at least, I do) if you run a similar one-liner: which probably makes the answer obvious to some people, though it doesn't to me. :-) If God had meant us to fly, he would *never* have given us the railroads. --Michael Flanders
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||