aman --

...and then aman cgiperl said...
% 
% here's the code.

Well, a snippet, anyway.


% 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 $_;
% }

Looks fine to me.  The only thing that comes to mind is that your $MSG
might have some expr-matching characters which bomb somehow.

Meanwhile, I have to wonder why you're modifying $_ in the loop.  I
haven't tested this (and so I know I'm gonna get burned), but why not
just

  while (<PAGIN>)
  {
    print PAGOUT s/##UF##/$MSG/g;
  }

instead?


% 
% I can't send the html file w/o permission from my workplace. I hope you
% understand and can help.

I understand, but you still don't give us a lot with which to work :-)


% Thanks
% Aman


HTH & HAND

:-D
-- 
David T-G                      * It's easier to fight for one's principles
(play) [EMAIL PROTECTED] * than to live up to them. -- fortune cookie
(work) [EMAIL PROTECTED]
http://www.justpickone.org/davidtg/    Shpx gur Pbzzhavpngvbaf Qrprapl Npg!

Attachment: msg25777/pgp00000.pgp
Description: PGP signature

Reply via email to