Never use $1 unless it's in the context of a conditional based on the success of the match. Otherwise, you get the previous success $1, and that's gonna bring you to tears while you're trying to debug it.
-- Randal L. Schwartz, Perl hacker
In reply to RE: Re: Getting an IP out of a string
by merlyn
in thread Getting an IP out of a string
by the_slycer
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |