in reply to Re^4: Named Captures
in thread Named Captures
Not quite.
%- 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
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^6: Named Captures
by BrowserUk (Patriarch) on Oct 06, 2010 at 15:12 UTC |
In Section
Seekers of Perl Wisdom