Re: look arounds

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

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