Help for this page

Select Code to Download


  1. or download this
    {
        my $foo = 1;
    ...
    }
    print level();
    __END__
    
  2. or download this
    Can't localize lexical variable $foo at __FILE__ line __LINE__.
    
  3. or download this
    {
        local *foo = sub : lvalue { print "wuff: $foo\n"; $foo };
    }
    
  4. or download this
    $\ = "\n";
    $foo = 3;
    ...
    4: 2.5
    5: 3.125
    6: 3
    
  5. or download this
    local foo() = 2;
    
  6. or download this
    Useless localizing of a subroutine return value