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
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 --
> >
> > ..
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
;[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
]>
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
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
> -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
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
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:
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
Hi all
I posted this on the CGI list but no response at all. Please have a look at this
problem.
I am reading from an html file and writing to another.
The while loop terminates before the complete file is read.
The worse part is that it works for some files and doesn't for others. Moreover, it
11 matches
Mail list logo