in reply to Re: saving search results to file
in thread saving search results to file
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; } }
|
|---|