Help for this page

Select Code to Download


  1. or download this
    $ perl -Mstrict -wE 'say ++$_ for 1..4;'
    2
    ...
    3
    4
    5
    
  2. or download this
    $ perl -Mstrict -wE 'say $_ for map {++$_} (1, 2, 3, 4);'
    Modification of a read-only value attempted at -e line 1.