be considered a war party and fired
upon. - http://dumblaws.com/
>-Original Message-
>From: Collin Rogowski [mailto:[EMAIL PROTECTED]]
>Sent: Mon 23 Apr 2001 09:11
>To: Jon Tillman; [EMAIL PROTECTED]
>Subject: Re: introduction and first question
>
>
>you could use the s/
you could use the s/// operator (substitute).
try
$line =~s/$IPold/$IPnew/;
This will change the first occurence of $IPold in $line into $IPnew.
If you want to change multiple occurences, use
$line =~s/$IPold/$IPnew/g;
g stands for global.
hope this helps,
cr
On Sun, 22 Apr 2001 14:13:12 -