One step easier yes....
i'm sure there's an easier way to do this, but...
This will work fine, the !~ or not match .. is what you are looking for...
Jams
@file = <FILE>;
$i = 0;
while (@file$i)
{
if(@file[$i] !~ /bill/gi)
{
@file[$i] = "billy_boy";
}
}
Falazar@yahoo.com
Hello,
I have a simple program that uses perl and file read/write abilities using an html form textarea to make it a basic notepad to edit html files in.
One problem though, anytime I edit a .cgi file, the program will no longer work. It matters not if I change anything or not, so I am not...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.