use strict; my $x=2; *main::z=\$x; print $main::z;