in reply to Re: problem with accessing PM file
in thread problem with accessing PM file

Lexically scoped variables are separate from package variables, including those in the default package of main.
$x = 2; my $x = 3; print $main::x, ' ', $x, "\n"; $main::x = 4; print $main::x, ' ', $x, "\n";
produces:
2 3
4 3
See MJD's Coping with Scoping