But this relies on constant folding happening after the PAD was populated.
I'd feel uncomfortable to use an undocumented feature and risk to run into problems in later perl versions.
IIRC they started to deprecate the similar my $var if 0; (poor man's state ) so I'm kind of sceptical that's guaranteed to stay.
Cheers Rolf
(addicted to the Perl Programming Language :)
see Wikisyntax for the Monastery
In reply to Re^4: trouble with packages/eval/variable-scoping
by LanX
in thread trouble with packages/eval/variable-scoping
by Ratazong
For: | Use: | ||
& | & | ||
< | < | ||
> | > | ||
[ | [ | ||
] | ] |