Salve,

ho una domanda riguardante il modulo http::daemon (
http://search.cpan.org/dist/libwww-p...HTTP/Daemon.pm ), nella sua
guida c'è scritto:

$c->send_file( $filename )
$c->send_file( $fd )

Copy the file to the client. The file can be a string (which will be
interpreted as a filename) or a reference to an IO::Handle or glob.

Sinceramente non ho mai usato IO::Handle per leggere dei files...

io di solito uso questo codice:

my $song = 'song.mp3';
open my $fh1, '<', $song or die "open(): $!\n";
binmode $fh1;
close($fh1);

come faccio tramite IO::Handle ad agganciarlo a $c->send_file( $fd ) ???

--

btw, dovrei iniziare a leggere questo file da un certo punto e non
dall'inizio, e meglio usare "seek" o "sysseek" ?? e dopo dovrei usare
"read" o "sysread" ??

Grazie