develooper Front page | perl.perl5.porters | Postings from May 2008

Re: English.pm alias for %+

Thread Previous
From:
demerphq
Date:
May 21, 2008 07:47
Subject:
Re: English.pm alias for %+
Message ID:
9b18b3110805210747n3f3f822yc551015ee995012a@mail.gmail.com
2008/5/21 Amir E. Aharoni <amir.aharoni@gmail.com>:
> The %+ variable, which is new in 5.10 if i understand correctly,
> doesn't have a proper alias for English.pm.
>
> %LAST_PAREN_MATCH works, because it is defined in English.pm as an
> alias for *+. But it's not an intuitive name and it wasn't intended
> for this and it's not documented in perlvar.
>
> Is there anyone who decides about the names of aliases in English.pm,
> or can i just be bold, make up a name and send a patch? I thought that
> %NAMED_CAPTURE would be appropriate.
>
> This is my first message on this list, so if it's a stupid question or
> the wrong list, feel free to bite me.

No no. You wont get bitten on this list so long as you stay around
from Unicode related issues..... (context humour, if you dont get it
dont worry, just read the p5p archives :-)

I dont think thats a bad name. But dont forget about %- at the same
time. Maybe NAMED_CAPTURE and NAMED_CAPTURE_LIST for %+ and %-
respectively.

yves

-- 
perl -Mre=debug -e "/just|another|perl|hacker/"

Thread Previous


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About