use strict; use warnings; BEGIN { package vars; *::x = \$::x } $x = 5; print $x;
In reply to Re^2: Ugly ways to declare global variables?
by Roy Johnson
in thread Ugly ways to declare global variables?
by wolfger
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |