UniEvent::Streamer::FileOutput - file output for streamer
my $output = UE::Streamer::FileOutput->new("file.txt"); my $streamer = UE::Streamer->new($input, $output); $streamer->start(); $streamer->finish_callback(sub { ... });
Writes incoming pieces of data, coming from UniEvent::Streamer into file.
Constructs new file output stream, which will write data into $path.
$path
If file doesn't exist, it will be created with $mode permissions.
$mode
NOTE: it will not create any non-existing subdirectories in $path. In this case the process will end up with error.
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.