You can combine calin's glob assignment with local to get dynamic scoping of such constants,
which prints,{ local *foo = \"foo"; bar() } sub bar { print "${foo}bar$/" } bar(); __END__
unless you have warnings on, which will complain of undefined $foo in the second call of sub bar.foobar bar
After Compline,
Zaxo
In reply to Re: Module Readonly
by Zaxo
in thread Module Readonly
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |