BrowserUk has asked for the wisdom of the Perl Monks concerning the following question:
Why does this only capture once?
perl -wE"'abcde'=~m[(?<a>a)|(?<b>b)|(?<c>c)|(?<d>d)]g and do{say for k +eys%+}" a
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Named Captures
by Corion (Patriarch) on Oct 06, 2010 at 11:09 UTC | |
by BrowserUk (Patriarch) on Oct 06, 2010 at 11:19 UTC | |
by LanX (Saint) on Oct 06, 2010 at 15:42 UTC | |
|
Re: Named Captures
by JavaFan (Canon) on Oct 06, 2010 at 11:03 UTC | |
by BrowserUk (Patriarch) on Oct 06, 2010 at 11:15 UTC | |
by Corion (Patriarch) on Oct 06, 2010 at 11:20 UTC | |
by BrowserUk (Patriarch) on Oct 06, 2010 at 11:27 UTC | |
by JavaFan (Canon) on Oct 06, 2010 at 15:02 UTC | |
|