in reply to Re^2: Restricted assignment
in thread Restricted assignment

I mean, perhaps you leave the block with the var to early. But is look now like the spelling mistake that anon monk found.
use warnings; { my $x = "xxx"; # $x get out of scope. } # print $x currently $::x witch is undefined currently print $x;
Boris