use strict; BEGIN { package vars; no strict qw(refs); $a="main::x"; *$a = \$$a } $x = 5; print $x;
In reply to Re: Ugly ways to declare global variables?
by itub
in thread Ugly ways to declare global variables?
by wolfger
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |