my ($foo, $bar) = ($test =~ /(capt-pat-1)...(capt-pat-2)/);
Doesn't get clobbered and is quite readable I think.
-David.
In reply to Re^2: Regex capture consumed by non-capturing match
by erroneousBollock
in thread Regex capture consumed by non-capturing match
by ribasushi
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |