Your skill will accomplish what the force of many cannot |
|
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
Doesn't that rely on undefined behaviour though? Auto increment and Auto decrement: Note that just as in C, Perl doesn't define when the variable is incremented or decremented. You just know it will be done sometime before or after the value is returned.ie: the doc doesn't rule out your code being interpreted as eval { --$i; $b[ $i ] = $a[ $i ] + $a[ $i ] } while $i; For example: $b[ $i ] = [ $i, --$i ] while $i; builds a list of identical pairs.</c> Correct and efficient might be:
In reply to Re^2: Abusing Map
by Eily
|
|