> -----Original Message----- > From: aman cgiperl [mailto:[EMAIL PROTECTED]] > Sent: Monday, June 10, 2002 1:42 PM > To: David T-G; perl beginners > Subject: Re: file read and then write problem > > > 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 $_; > }
Nothing in there looks particularly unusual. Remember that PAGOUT will be buffered, so you won't see the last block written until the file is closed or the script ends. > > I can't send the html file w/o permission from my workplace. > I hope you > understand and can help. Well that limits our ability to respond, doesn't it? -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]