This should work, shouldn't it?
open(CONFIG,">>/home/mnorris/$first_file") || die "Sorry, I couldn't create
/home/mnorris/$first_file\n";
while (<CONFIG>) {
$_ =~ s/0000/$first_var/;
}
close(CONFIG);
It should be opening the file named "$first_file" (created earlier in the script) and
then substituting the value of "$first_var" every time it finds "0000" in the file. I
must be a little off course, though.
_____________________________________________________________
Surf on! Get a free and secure email account and more @ surfOrbit.com
http://www.surfOrbit.com
_____________________________________________________________
Promote your group and strengthen ties to your members with [EMAIL PROTECTED] by
Everyone.net http://www.everyone.net/?btn=tag
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]