Just use a simple /(?: instead of /(?|, and then if there's a mathc, the magical $+ variable will contain what you need.
In reply to Re: perl 5.8.8 equivalent of ?|
by ambrus
in thread perl 5.8.8 equivalent of ?|
by Tinkster
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |