UniEvent::Streamer::FileInput - file input for streamer
my $input = UE::Streamer::FileInput->new("file.txt"); my $streamer = UE::Streamer->new($input, $output); $streamer->start(); $streamer->finish_callback(sub { ... });
Reads file content into and feeds it further to the UniEvent::Streamer.
Constructs new file input stream for the file located at $path and will read it by $chunk_size bytes chunks.
$path
$chunk_size
To install UniEvent, copy and paste the appropriate command in to your terminal.
cpanm
cpanm UniEvent
CPAN shell
perl -MCPAN -e shell install UniEvent
For more information on module installation, please visit the detailed CPAN module installation guide.