![]() |
|
Pathologically Eclectic Rubbish Lister | |
PerlMonks |
Re: Is there another way to get named capturesby LanX (Sage) |
on Jan 08, 2022 at 20:40 UTC ( #11140277=note: print w/replies, xml ) | Need Help?? |
> I wonder if there is another way to get named captured groups than %+ or %-. not without reimplementing it
> and now it looks: why not just func( { %+ } ); this will pass the hashref of a flat copy, without messing with the globally tied %+
updatedemo in debugger
NB: if you are only passing the named captures, why not just flattening %+ to a list?
Cheers Rolf
edits/sub/func/ , since sub is a keyword
In Section
Seekers of Perl Wisdom
|
|