Help for this page

Select Code to Download


  1. or download this
    my $i=0;
    foreach $scalar(@array) {
       print("$scalar is $i element\n");
       $i++;
       }
    
  2. or download this
    my $i=0;
    for(@array) {
       print("$_ is $i element\n");
       $i++;
       }