perl-asp mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joshua Chamas <jos...@chamas.com>
Subject Re: intermittent failure reading a file
Date Fri, 15 Jun 2001 19:35:17 GMT
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: asp-unsubscribe@perl.apache.org
For additional commands, e-mail: asp-help@perl.apache.org


Mime
View raw message