Hello monks!
I wonder if there is another way to get named captured groups than %+ or %-.
Something like:
%nc = $str =~ /?<status>[\w\040]*)/; say %nc{status};
I'm trying to rewrite my code without globals like %+, %-, because I need to pass this hash to a sub and now it looks:
Maybe you know related modules or other solutions.my %matches = %+; sub(\%matches);
In reply to Is there another way to get named captures by AlexP
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |