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 }; }