IOMux::File::Write - write to file
IOMux::File::Write is an IOMux::Handler::Write is an IOMux::Handler
my $mux = IOMux::Select->new; # or ::Poll use IOMux::Open '>'; my $file = $mux->open('>', $filename); use IOMux::File::Write; my $file = IOMux::File::Write->new (file => $filename, mode => '>>'); $mux->add($file); $file->write($text); $file->print($text); write $file $text; print $file $text;
Open a file to be written.
Extends "DESCRIPTION" in IOMux::Handler::Write.
Extends "METHODS" in IOMux::Handler::Write.
Extends "Constructors" in IOMux::Handler::Write.
-Option --Defined in --Default append <false> create <true> exclusive <false> fh IOMux::Handler <required> file <required> mode '>' modeflags <undef> name IOMux::Handler '$mode$file' write_size IOMux::Handler::Write 4096
The file to be managed, either provided as FILENAME or as HANDLE. When a HANDLE is passed, most other options will be ignored. The HANDLE must be in non-blocking mode already and opened for writing (only).
The >> is short for normal open plus the append option set.
>>
When defined, the mode, exclusive, create and append options are not used, but your value is taken. Use constants defined by Fcntl. Do not forget to include O_NONBLOCK.
mode
exclusive
create
append
O_NONBLOCK
Extends "Accessors" in IOMux::Handler::Write.
Inherited, see "Accessors" in IOMux::Handler
The bits of the open mode.
Inherited, see "Accessors" in IOMux::Handler::Write
Extends "User interface" in IOMux::Handler::Write.
Extends "Multiplexer" in IOMux::Handler::Write.
Extends "Helpers" in IOMux::Handler::Write.
Inherited, see "Helpers" in IOMux::Handler
This module is part of IOMux distribution version 1.01, built on January 15, 2020. Website: http://perl.overmeer.net/CPAN
Copyrights 2011-2020 by [Mark Overmeer <markov@cpan.org>]. 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://dev.perl.org/licenses/
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.