in reply to Re^2: Succinct switch statement
in thread Succinct switch statement

I tested it with a for loop, which works. The difference seems to be that while doesn't limit the scope of $_ in any way.