XP is just a number | |
PerlMonks |
RE: Re: regexp'sby merlyn (Sage) |
on Oct 03, 2000 at 18:14 UTC ( [id://35106]=note: print w/replies, xml ) | Need Help?? |
Do not use $1 except after you've verified that the match was successful,
else you will get the previous $1. That would not have been
fatal here, but if you'd been accumulating rather than setting, you'd get some
odd stuff.
-- Randal L. Schwartz, Perl hacker
In Section
Seekers of Perl Wisdom
|
|