Re: look arounds

2003-07-07 Thread Steve Grazzini
On Mon, Jul 07, 2003 at 01:00:22PM +0100, Rob Dixon wrote: > Steve Grazzini wrote: > > 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; > > > > $^N is new in 5.8.0. > >

Re: look arounds

2003-07-07 Thread Rob Dixon
Steve Grazzini wrote: > 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 = ,

Re: look arounds

2003-07-06 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 thi

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

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 "col

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