Help for this page

Select Code to Download


  1. or download this
    for my $i (1 .. 10) {
        print "$i\n";
    }
    
  2. or download this
    use feature qw{ say };
    say for 1 .. 10;
    
  3. or download this
    my $i = 1;
    while (10 >= $i) {
        print $i++, "\n";
    }