in reply to Re: Is there another way to get named captures
in thread Is there another way to get named captures
Thanks for writing this!
Personally, I think there could be a small enhancement, to be able to also create match objects without needing the regular expression, like:
my $string = 'foo foo fooo'; while( $string =~ /(fo+)/g) { my $match = Regex::Object->collect(); push @matches, $match; }
That way, the collecting of the match data is available even when I'm not running a plain match.
In Section
Seekers of Perl Wisdom