Help for this page

Select Code to Download


  1. or download this
    my $x;                <- this one.
    
    ...
        my $z;            <- this one.
        sub f { ... }
    }
    
  2. or download this
    my $x = 'shadowed';      # <- invisible
    {
        my $x = 'shadowing'; # <- visible
        sub f { say "I only see the \$x that's $x." };
    }