http://www.perlmonks.org?node_id=1095527


in reply to using the feature 'switch' in loops

I didn't expected that the 'last' statement in the switch statements

There's no such thing as a switch statement. Did you mean a given statement? But you didn't use one??

You have a pair of nested loops. last (without a label) exits the innermost loop.