Help for this page

Select Code to Download


  1. or download this
    "You are correct - a foreach loop builds a temporary list, and iterates over that."
  2. or download this
    my @list = (1,2,3,4,5);
    foreach (@list) {
      print $_."\n";
      push @list,$_.$_;
    }