Help for this page

Select Code to Download


  1. or download this
    for my $tmp ("a","b","c")
    {
    ...
            print "$tmp, $_\n";
        }
    }
    
  2. or download this
    for ("a","b","c")
    {
    ...
            print "$__, $_\n";
        }   
    }
    
  3. or download this
    sub test 
    {
    ...
        my $val=$_[0];
        sub { print "$val, $_[0]\n" }
    }
    
  4. or download this
    sub test2
    {
    ...
        # fill in the BLANK with something that refers to
        # test2's $_[0], not the anonymous sub's
    }