in reply to Re: Re: Never lock $0 inside of a BEGIN block
in thread Never lock $0 inside of a BEGIN block
Because the following syntax is valid (even if nonsensical):
An upshot of the modifier forms of 'for' and 'if' is that you can make C-style static variables withmy $foo = "Hello there" for (1 .. 3);
Though Larry says it's an accident of implementation that this works...sub blah { my $foo if 0; print $foo++,$/; } blah(),blah(),blah();
--
[ e d @ h a l l e y . c c ]
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Re: Re: Re: Never lock $0 inside of a BEGIN block
by demerphq (Chancellor) on May 21, 2003 at 21:37 UTC | |
by ChemBoy (Priest) on May 21, 2003 at 22:07 UTC | |
by demerphq (Chancellor) on May 22, 2003 at 08:39 UTC |