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 -
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Hi all,
I am a perl newbie, who is learning perl because I accidentally became a
sysadmin at work (sigh). My first task was a set of perl scripts to change
entries in .hosts files for BIND/DNS. The first one I wrote only needed to
change the TTL va