Perl5 has it in a limited way
The Perl5 code you've shown is not really the same, because the names are defined outside of the pattern. The idea is, the pattern contains not only the thing to be matched, but the name to give the match.
In reply to Re^2: RFC: named pattern match tokens
by revdiablo
in thread RFC: named pattern match tokens
by revdiablo
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |