Help for this page

Select Code to Download


  1. or download this
    
    my $i = 0;             # init $i and set to 0
    ...
    print ++$i + ++$i;     # answer: 7 (3 + 4) post-operation -> $i == 7 n
    +ow
    print ++$i + $i++ + 1; # answer: 17 (7 + 9 + 1) post-operation -> $i =
    += 17 now
    
  2. or download this
    perl -Mstrict -e '
    my $i = 0;  
    ...
    5
    10
    14