in reply to Re: stupid $1
in thread Regex Capture Fails (was: stupid $1)

Every time you use regular expression, you reset the variables $1..$9
No, it's only a successful match that resets them. Common misconception.

-- Randal L. Schwartz, Perl hacker
Be sure to read my standard disclaimer if this is a reply.

Replies are listed 'Best First'.
Re: •Re: Re: stupid $1
by Cody Pendant (Prior) on Mar 05, 2003 at 00:55 UTC
    Plus, I can't have a $10?

    Update Sorry, merlyn, to clarify, I meant that the previous poster seems to think you only get a maximum of nine dollar-n variables. --

    “Every bit of code is either naturally related to the problem at hand, or else it's an accidental side effect of the fact that you happened to solve the problem using a digital computer.”
    M-J D