Help for this page

Select Code to Download


  1. or download this
    use strict;
    my @a=(1..100);
    ...
    for my $i (0..@a-1) {
      print $a[i];
    }
    
  2. or download this
    use strict;
    my $a=[1..100];
    ...
    for my $i (0..$a-1) {
      print $a->[i];
    }