in reply to Regex and @+

Typos-R-us! Once I get the code correct, I get the expected results!

Replies are listed 'Best First'.
Re: Oh Nuts! Re: Regex and @+
by Hofmator (Curate) on Aug 31, 2001 at 16:06 UTC

    small remark ... you could have had an easier life by writing

    print "\$1 is $1, \@- contains ", join(', ', @-), "\n"; print "\$2 is $2, \@+ contains ", join(', ', @+), "\n";
    There is still the chance of typos, but it's decreased and easier detected.

    -- Hofmator