Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re^5: Why I can not acess files outside cgi-bin directory?

by nobull (Friar)
on Mar 25, 2005 at 09:38 UTC ( [id://442304]=note: print w/replies, xml ) Need Help??


in reply to Re^4: Why I can not acess files outside cgi-bin directory?
in thread Why can I not acess files outside cgi-bin directory?

Maybe the file is big. Slurping the whole file into memory can cause the process to go swap-bound.

Try copying it a chunk at a time. (Use File::Copy or DIY).

{ local $/ = \1024; local *_; while (<READ>) { print }; }

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://442304]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others studying the Monastery: (4)
As of 2024-04-24 02:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found