Re: mention that $1 etc. is reset even without any /()/'s

[email protected] (_brian_d_foy) Sat, 27 Nov 2004 13:42:36 -0600
Newsgroups perl.documentation
Message-ID <271120041342360690%[email protected]>
[[ This message was both posted and mailed: see
   the "To," "Cc," and "Newsgroups" headers for details. ]]

In article <[email protected]>, Dan Jacobson
<[email protected]> wrote:

> perlop and perlretut seem not to mention that $1, $2 ... are reset
> even when one doesn't use ()'s.

The memory variables are always the values from the last successful
match.  It doesn't matter what that match was.  See their entry in
perlre.

Which parts of perlop and perlreftut do you think are confusing?

-- 
brian d foy, [email protected]