in reply to Re: Restricted assignment
in thread Restricted assignment

Hi Boris, I'm now a bit puzzeled!

Scope: what does it mean ?
Lifetime: I assume to be restricted
to the function or do{} section


(:
ChFa

Replies are listed 'Best First'.
Re^3: Restricted assignment
by borisz (Canon) on Sep 28, 2004 at 10:38 UTC
    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