%- will have a key for every named capture in the pattern, whether that capture was involved in the match or not.() = 'abc' =~ /(?<a>a)|(?<f>f)/ and do {say for keys %-}; __END__ a f
In reply to Re^5: Named Captures
by JavaFan
in thread Named Captures
by BrowserUk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |