in reply to Why no bareword warnings while inside of BEGIN
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. :-)perl -e 'use strict;BEGIN{if (bareword > 1) {1} }'
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Why no bareword warnings while inside of BEGIN
by JayBonci (Curate) on Mar 22, 2004 at 22:59 UTC | |
by Limbic~Region (Chancellor) on Mar 22, 2004 at 23:06 UTC |