in reply to Re: Re: How to send a file vith apache?
in thread How to send a file vith apache?

Well, if you use sysread, you should also use syswrite instead of print. That way you don't have to bother with binmode, etc. And somehow, it seems cleaner to me than mixing the two different idioms.
  • Comment on Re: Re: Re: How to send a file vith apache?

Replies are listed 'Best First'.
Re: Re: Re: Re: How to send a file vith apache?
by sgifford (Prior) on May 01, 2004 at 20:27 UTC

    I didn't use sysread, just read, which uses buffering the same way as the diamond operator. It just reads a fixed number of bytes instead of scanning for EOL.

    You're right that sysread and syswrite would work fine; they might even be a little faster.