I'd become something like:
<open filehandles here ...> my @global_filehandles = qw(STDOUT STDERR FILE); printh("look mom, printed to 3 filehandles!\n"); sub printh { my $text = shift; foreach my $fh (@global_filehandles) { no strict 'refs'; print $fh $text; use strict; } }
In reply to Re^2: saving search results to file
by eXile
in thread saving search results to file
by tcf03
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |