in reply to Restricted assignment

From your updated node, I get the impression that $Unknown is out of scope. Inspect the lifetime of the my variable $Unknown careful.
Boris

Replies are listed 'Best First'.
Re^2: Restricted assignment
by o_chfa (Acolyte) on Sep 28, 2004 at 10:21 UTC
    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
      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