in reply to Re^3: Named Captures
in thread Named Captures
Okay. That begins to make sense ;)
But, I discovered that I can get (sort of) what I was after by switching to %-
perl -wE"()='abcde' =~ m[(?<a>a)|(?<b>b)|(?<c>c)|(?<d>d)|(?<e>e)]g and + do{ say for keys %- }" e c a b d
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: Named Captures
by JavaFan (Canon) on Oct 06, 2010 at 15:02 UTC | |
by BrowserUk (Patriarch) on Oct 06, 2010 at 15:12 UTC |