Help for this page

Select Code to Download


  1. or download this
    my @a = (1,2,3,4);
    for my $i (@a) { $i = 5 };
    print "@a";  # prints: 5 5 5 5
    
  2. or download this
    for my $i (1,2,3,4) { $i = 5 };