Help for this page

Select Code to Download


  1. or download this
    $ perl -E 'say for 1 ..2'
    1
    2
    
  2. or download this
    $ perl -E 'for (1 .. 2) { say }'
    1
    2
    
  3. or download this
    $ perl -E 'my $fetch = sub { say "fetching ..." }; $fetch->() for 1 ..
    +2'
    fetching ...
    fetching ...