in reply to Re^3: trouble with packages/eval/variable-scoping
in thread trouble with packages/eval/variable-scoping
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
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^5: trouble with packages/eval/variable-scoping
by ikegami (Patriarch) on Aug 29, 2024 at 17:00 UTC |