I think this is the most readable solution for this specific problem posted so far, thanks for posting it.
I have always shied away from List::Util and friends so far, but I'm starting to see its beauty...
In reply to Re^2: Is there a more functional regex syntax?
by smls
in thread Is there a more functional regex syntax?
by smls
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |