Re: look arounds

2003-07-07 Thread Steve Grazzini
On Sun, Jul 06, 2003 at 11:20:03AM -, mark sony wrote: $_ = 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 :

look arounds

2003-07-06 Thread mark sony
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 :

Re: look arounds

2003-07-06 Thread Kristofer Hoch
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 =

Re: look arounds

2003-07-06 Thread drieux
On Sunday, Jul 6, 2003, at 04:20 US/Pacific, mark sony 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