in reply to Re: Ugly ways to declare global variables?
in thread Ugly ways to declare global variables?
use strict; use warnings; BEGIN { package vars; *::x = \$::x } $x = 5; print $x;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Ugly ways to declare global variables?
by itub (Priest) on Apr 25, 2005 at 20:15 UTC |