Help for this page

Select Code to Download


  1. or download this
    my $num = 0;
    for (1..5) {
    ...
        .
        .
    }
    
  2. or download this
    for my $num (1..5) {
        # You can use $num in the loop, and it gets
        # increased automatically
    }