CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Regular Expressions:
(?P<..>..) in perl

 



gnix
Novice

Mar 5, 2009, 7:09 AM

Post #1 of 2 (4244 views)
(?P<..>..) in perl Can't Post

hi. I know that Python has the possibility to use this syntax (?P<name>regex) to have a backreference with the name 'name', instead of $1, $2, etc. I tryed in Perl, but it doesn't work. Do you know if is possible to use this syntax?

thanks
gnix


KevinR
Veteran


Mar 5, 2009, 1:43 PM

Post #2 of 2 (4240 views)
Re: [gnix] (?P<..>..) in perl [In reply to] Can't Post

It is but its new to perl 5.10 which is the newest major version of perl. See perlretut for details.

http://perldoc.perl.org/perlretut.html#Backreferences
-------------------------------------------------

 
 


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives