File::Send - Sending files over a socket efficiently and cross-platform
File::Send provides access to your operating system's
or if that is not available uses File::Map and
syswrite to achieve a similarly efficient io function.
It allows you to efficiently transfer data from one filehandle to another.
Typically the source is a file on disk and the sink is a socket,
and some operating systems may not even support other usage.
This function sends up to
$count bytes from
If $count isn't given,
it will send all remaining bytes in $in.
$out can be a bareword,
or a reference to a typeglob.
It returns the number of bytes actually sent.
On error it throws an exception describing the problem.
This function is exported by default.
Leon Timmermans <firstname.lastname@example.org>
This software is copyright (c) 2011 by Leon Timmermans.