in reply to Using qr// with a complicated regex

Probably just a typo, but aren't there a couple of brackets missing from the last line of your final regex?


Anyone know of an abbottoire going cheap?

  • Comment on Re: Using qr// with a complicated regex

Replies are listed 'Best First'.
Re: Re: Using qr// with a complicated regex
by elusion (Curate) on Jul 13, 2002 at 00:48 UTC
    Yup. That's a typo. Sorry 'bout that, that's what I get for making up code instead of using cut-and-paste. ;-) It should be:
    my @vars; $string =~ /(?{local @1 = ();} (?:( (\d) (?{ local @1 = (@1, $1) }) \w )+ \d\w (?{ @vars = @1 })/x;

    elusion : http://matt.diephouse.com