IOMux::File::Read - write to file
IOMux::File::Read is a IOMux::Handler::Read is a IOMux::Handler
my $mux = IOMux::Select->new; # or ::Poll use IOMux::Open '<'; my $file = $mux->open('<', $filename); use IOMux::File::Read; my $file = IOMux::File::Read->new(file => $filename); $mux->add($file); $file->getline(sub {print "\n"});
In an event driven program, reading is harder to use than writing: the read will very probably be stalled until data has arrived, so you will need a callback to handle the resulting data.
Extends "DESCRIPTION" in IOMux::Handler::Read.
Extends "METHODS" in IOMux::Handler::Read.
Extends "Constructors" in IOMux::Handler::Read.
-Option --Defined in --Default exclusive <false> fh IOMux::Handler <required> file <required> mode '<' modeflags <undef> name IOMux::Handler '<$file' read_size IOMux::Handler::Read 32768
For now, the mode is always simply 'read'
When defined, the exclusive option is not used, but your value is taken. Use constants defined by Fcntl. Do not forget to include O_NONBLOCK.
exclusive
O_NONBLOCK
Extends "Accessors" in IOMux::Handler::Read.
Inherited, see "Accessors" in IOMux::Handler
The bits of the open mode.
Inherited, see "Accessors" in IOMux::Handler::Read
Extends "User interface" in IOMux::Handler::Read.
Extends "Multiplexer" in IOMux::Handler::Read.
Extends "Helpers" in IOMux::Handler::Read.
Inherited, see "Helpers" in IOMux::Handler
This module is part of IOMux distribution version 1.00, built on November 11, 2015. Website: http://perl.overmeer.net/ All modules in this suite: "Any::Daemon", "IOMux", and "IOMux::HTTP".
Please post questions or ideas to perl@overmeer.net
Copyrights 2011-2015 by [Mark Overmeer]. For other contributors see ChangeLog.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See http://www.perl.com/perl/misc/Artistic.html
To install IOMux, copy and paste the appropriate command in to your terminal.
cpanm
cpanm IOMux
CPAN shell
perl -MCPAN -e shell install IOMux
For more information on module installation, please visit the detailed CPAN module installation guide.