in reply to Re: Named Captures
in thread Named Captures
Okay. What is going on here then?
perl -wE"'abcde' =~ m[(?<a>a)|(?<b>b)|(?<c>c)|(?<d>d)|(?<e>e)]g and do +{ say for keys %+ }" a perl -wE"()='abcde' =~ m[(?<a>a)|(?<b>b)|(?<c>c)|(?<d>d)|(?<e>e)]g and + do{ say for keys %+ }" e perl -wE"my@a = 'abcde' =~ m[(?<a>a)|(?<b>b)|(?<c>c)|(?<d>d)|(?<e>e)]g + and do{ say for keys %+ }" e perl -wE"my@a = 'abcde' =~ m[(?<a>a)|(?<b>b)|(?<c>c)]g and do{ say for + keys %+ }" ## big fat nothing?
Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: Named Captures
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 | |
by BrowserUk (Patriarch) on Oct 06, 2010 at 15:12 UTC |
In Section
Seekers of Perl Wisdom