File::Print::Many - Print to more than one file descriptor at once
Version 0.03
Print to more than one file descriptor at once.
use File::Print::Many;
open(my $fout1, '>', '/tmp/foo');
open(my $fout2, '>', '/tmp/bar');
my $many = File::Print::Many->new(fds => [$fout1, $fout2]);
print $fout1 "this only goes to /tmp/foo\n";
$many->print("this goes to both files\n");
Send output.
$many->print("hello, world!\n");
$many->print('hello, ', "world!\n");
$many->print('hello, ')->print("world!\n");
Nigel Horne, <njh at bandsman.co.uk>
Please report any bugs or feature requests to bug-file-print-many at rt.cpan.org
,
or through the web interface at
http://rt.cpan.org/NoAuth/ReportBug.html?Queue=File-Print-Many.
I will be notified, and then you'll
automatically be notified of progress on your bug as I make changes.
You can find documentation for this module with the perldoc command.
perldoc File::Print::Many
You can also look for information at:
-
RT: CPAN's request tracker
-
AnnoCPAN: Annotated CPAN documentation
Copyright 2018-2023 Nigel Horne.
This program is released under the following licence: GPL2