In list context, you can get away with unwanted captures by using undef on the left hand side.
my( $a, undef, $b) = m/(a)(b)(c)/;
-- stefp -- check out TeXmacs wiki
In reply to Re: Re: Regular Expressions
by stefp
in thread Parenthesis usage in Regular Expressions
by WarrenBullockIII
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |