here's the code. the file that I am reading is an html file generated by similar code
open PAGIN, "/$path/index_tmp.html"; open PAGOUT, ">/$path/index.html"; while(<PAGIN>) { $_ =~ s/##UF##/$MSG/g; print PAGOUT $_; } I can't send the html file w/o permission from my workplace. I hope you understand and can help. Thanks Aman ----- Original Message ----- From: "David T-G" <[EMAIL PROTECTED]> To: "perl beginners" <[EMAIL PROTECTED]> Cc: "aman cgiperl" <[EMAIL PROTECTED]> Sent: Monday, June 10, 2002 12:25 PM Subject: Re: file read and then write problem -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]