in reply to Re: Getting an IP out of a string
in thread Getting an IP out of a string

Danger will robinson!

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

Replies are listed 'Best First'.
RE: RE: Re: Getting an IP out of a string
by bliz (Acolyte) on Aug 16, 2000 at 22:48 UTC
    always the wise one.. :) ++merlyn
(Kozz)RE: RE: Re: Getting an IP out of a string
by Kozz (Friar) on Aug 17, 2000 at 01:10 UTC
    Most people will tell you to learn from your mistakes, but I always think it's 100% better if you can learn from someone else's mistakes. This is actually one of the great reasons I visit Perlmonks -- the cooperative learning can't be beat!
    p.s. no offense intended to raflach: I might have made the same mistake.