in reply to what does this print?
The short cuting of the ||= is throwing you off. The right hand side doesn't get evaluated if $first is defined.
Prints as expected. cog beat me to it, thats what i get for not refreshing the node before replying. ;)for (1..10) { $last = $_; $first ||= $last; } print "$first..$last\n";
|
|---|