Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Perl: porters

English.pm alias for %+

 

 

Perl porters RSS feed   Index | Next | Previous | View Threaded


amir.aharoni at gmail

May 21, 2008, 7:36 AM

Post #1 of 2 (86 views)
Permalink
English.pm alias for %+

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.

--
Amir Elisha Aharoni

English - http://aharoni.wordpress.com
עברית - http://haharoni.wordpress.com

"We're living in pieces,
I want to live in peace." - T. Moore


demerphq at gmail

May 21, 2008, 7:47 AM

Post #2 of 2 (77 views)
Permalink
Re: English.pm alias for %+ [In reply to]

2008/5/21 Amir E. Aharoni <amir.aharoni[at]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/"

Perl porters RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact lists@gossamer-threads.com
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.