|laziness, impatience, and hubris|
conditional statement works one way, but not the other (Updated)by igoryonya (Pilgrim)
|on May 15, 2014 at 08:37 UTC||Need Help??|
igoryonya has asked for the wisdom of the Perl Monks concerning the following question:
Hello, I am breaking my head, why this works:
, but this gives a syntax error:
I checked and rechecked, but didn't find any paretacy or semicolon missing or extra.
Thanx in advance.
Here is an uncondenced version of the if code:
Now I'm curious, I cannot break out of map execution in the middle, using last or some other means. It will process an entire list to the end? It appears that the last statement in the above code will break out of the loop, containing the map command, not from the map itself, so, I've had to remove last from the code above:
Am I correct, if so, is there actually a way to breakout of map?