There's more than one way to do things | |
PerlMonks |
Re^2: Complex Splittingby diotalevi (Canon) |
on Feb 07, 2007 at 07:58 UTC ( [id://598700]=note: print w/replies, xml ) | Need Help?? |
In perl 5.10, you don't need to do backflips to get away from the "extra" captures. (?^...|...) means the captures get renumbered so here both are $1. Only one ever actually matches at any time so there's no conflict.
⠤⠤ ⠙⠊⠕⠞⠁⠇⠑⠧⠊
In Section
Seekers of Perl Wisdom
|
|