in reply to
Re^7: Improve foreach with help of map?
in thread
Improve foreach with help of map?
Right. My fix was wrong. You need to reset pos some other way on success. Unfortunately, it appears to be simpler to use a single match.
Comment on
Re^8: Improve foreach with help of map?
In Section
Seekers of Perl Wisdom