Help for this page

Select Code to Download


  1. or download this
    my $var;
    my @vars = qw(one two three);
    for $var (@vars) {subroutine()};
    sub subroutine {print "var is $var\n"};
    
  2. or download this
    my $var;
    my @vars = qw(one two three);
    for (@vars) {$var = $_; subroutine()};
    sub subroutine {print "var is $var\n"};