Re: file read and then write problem

2002-06-10 Thread bob ackerman
On Monday, June 10, 2002, at 11:57 AM, Jeff 'japhy' Pinyan wrote: > On Jun 10, bob ackerman said: > >> On Monday, June 10, 2002, at 11:23 AM, aman cgiperl wrote: >> >>> $MSG is a link http://www.foo.com/dpt/index.html >>> >>> Is there anything else other than EOF, that can cause a while loop t

Re: file read and then write problem

2002-06-10 Thread aman cgiperl
PROTECTED]> > > To: "perl beginners" <[EMAIL PROTECTED]> > > Cc: "aman cgiperl" <[EMAIL PROTECTED]> > > Sent: Monday, June 10, 2002 12:49 PM > > Subject: Re: file read and then write problem > > > > aman -- > > > > ..

Re: file read and then write problem

2002-06-10 Thread Jeff 'japhy' Pinyan
On Jun 10, bob ackerman said: >On Monday, June 10, 2002, at 11:23 AM, aman cgiperl wrote: > >> $MSG is a link http://www.foo.com/dpt/index.html >> >> Is there anything else other than EOF, that can cause a while loop to exit >> when reading file? > >there is something that will stop the substitu

Re: file read and then write problem

2002-06-10 Thread bob ackerman
;[EMAIL PROTECTED]> > Sent: Monday, June 10, 2002 12:49 PM > Subject: Re: file read and then write problem > > aman -- > > and then aman cgiperl said... > % > % here's the code. > > Well, a snippet, anyway. > > > % the file that I am readin

Re: file read and then write problem

2002-06-10 Thread aman cgiperl
]> Cc: "aman cgiperl" <[EMAIL PROTECTED]> Sent: Monday, June 10, 2002 12:49 PM Subject: Re: file read and then write problem 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 b

Re: file read and then write problem

2002-06-10 Thread Jeff 'japhy' Pinyan
On Jun 10, David T-G said: >% $_ =~ s/##UF##/$MSG/g; > >Looks fine to me. The only thing that comes to mind is that your $MSG >might have some expr-matching characters which bomb somehow. The right-hand side of the s/// can't do anything to blow up the regex. >Meanwhile, I have to wonder w

RE: file read and then write problem

2002-06-10 Thread Bob Showalter
> -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 htm

Re: file read and then write problem

2002-06-10 Thread David T-G
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() { % $_ =~ s/##UF##/$MSG/g; % print PA

Re: file read and then write problem

2002-06-10 Thread aman cgiperl
ion 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:

Re: file read and then write problem

2002-06-10 Thread David T-G
Aman -- ...and then aman cgiperl said... % % Hi all Hello! ... % FA terminates at something like http://www.foo.com/store/images/dpt/S % The files always terminate at same stage each time but there are some others been written perfectly. Post two files that fail and your code. We certainly