Skip to content

nigelhorne/File-Print-Many

Repository files navigation

NAME

File::Print::Many - Print to more than one file descriptor at once

VERSION

Version 0.03

SYNOPSIS

Print to more than one file descriptor at once.

SUBROUTINES/METHODS

new

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");

print

Send output.

$many->print("hello, world!\n");
$many->print('hello, ', "world!\n");
$many->print('hello, ')->print("world!\n");

AUTHOR

Nigel Horne, <njh at bandsman.co.uk>

BUGS

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.

SEE ALSO

SUPPORT

You can find documentation for this module with the perldoc command.

perldoc File::Print::Many

You can also look for information at:

LICENCE AND COPYRIGHT

Copyright 2018-2023 Nigel Horne.

This program is released under the following licence: GPL2

About

Print to more than one file descriptor at once

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages