Looks like you posted this as I was composing my reply below. I get it now. You're doing it exactly how I was thinking of the problem at first, making the regular expression be the array and the LHV of the match be the individual element. That's a clever use of $" to make the separator be the alternation operator for regexps ('|'). I thought | only worked in parentheses, though. I stand corrected.
_________________________________________________________________________________
I like computer programming because it's like Legos for the mind.
In reply to Re^4: My 'perldar' tells me there is a 'better' solution for this list operation
by OfficeLinebacker
in thread My 'perldar' tells me there is a 'better' solution for this list operation
by OfficeLinebacker
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |