Mark, I get this... color = brown, animal = fox
--- mark sony <[EMAIL PROTECTED]> wrote: > Hi All, > > Can anyone plz explain to me why this one is not working : > > $_ = "The brown fox jumps over the lazy dog"; > /the (\S+)(?{ $color = $^N }) (\S+)(?{ $animal = $^N })/i; > print "color = $color, animal = $animal\n"; > > When I run the program it gives :color = , animal = > > I took it from this link : > http://www.perldoc.com/perl5.8.0/pod/perlre.html > > Thanx in advance > Mark > > ___________________________________________________ > Click below to experience Sooraj R Barjatya's latest offering > 'Main Prem Ki Diwani Hoon' starring Hrithik, Abhishek > & Kareena http://www.mpkdh.com > > > -- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > ===== -----BEGIN GEEK CODE BLOCK----- Version: 3.12 GIT d s+:++ a C++ UL++ US+ P+++ L++ W+++ w PS PE t++ b+ G e r+++ z++++ ------END GEEK CODE BLOCK------ __________________________________ Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month! http://sbc.yahoo.com -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]