I’m not sure why you thought map would be easier than foreach.
Originally I didn't have a foreach, it was actually just a for (my $i = 32; $i < 127; ++$i). That's why I said "... basically something like this ..." I modified it later to have a similar "look" as the (almost) equivalent map construct.
And your point about "next" and "last" is both correct and ironic, because the first thing that happened when I switched to map was that I ran into the problem of next not being usable and having to be written differently, which reminded me of this recent question.
In reply to Re^2: Taken out of Context
by liverpole
in thread Taken out of Context
by liverpole
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |