Josh:
The sysread() call works reliably!
Thanks for the good call.
Regards,
Steve
_____________________
Stephen Bardsley
RLW Inc.
Malta, NY
> -----Original Message-----
> From: Joshua Chamas [mailto:[EMAIL PROTECTED]]
> Sent: Friday, June 15, 2001 3:35 PM
> To: Stephen Bardsley
> Cc: [EMAIL PROTECTED]
> Subject: Re: intermittent failure reading a file
>
>
> Stephen Bardsley wrote:
> >
> > Josh:
> >
> > The problem only occurs under Apache::ASP,
> > but works wonderfully in a pure perl environment.
> >
> > Steve
> >
>
> I don't think Apache::ASP is getting in your way,
> but something else in the mod_perl env might be. In
> particular, if $/ were ever set to anything else,
> that would affect the behavior of <IN>
>
> > grep '$/.\=' ASP.pm
> local $/ = undef;
> local $/ = undef;
>
> so its not Apache::ASP
>
> If this problem persists for you. I would carefully
> look at the data that you have read in so far
> while debugging, to see where it stops in the file.
> Also, if all else fails, you might try sysread(IN)
> and then @lines = split(/\n/, $data)
>
> --Josh
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]