in reply to Passing file handle to tee that goes into open
I'd probably just print to several file handles:
sub tee { my ($fhs, $strings) = @_; print {$_} @$strings for @$fhs; } open my $fh1, '>', $f1 or die "$f1: $!"; open my $fh2, '>', $f2 or die "$f2: $!"; tee([ $fh1, $fh2 ], [ 'Whatever you want to ', $print ]);
($q=q:Sq=~/;[c](.)(.)/;chr(-||-|5+lengthSq)`"S|oS2"`map{chr |+ord }map{substrSq`S_+|`|}3E|-|`7**2-3:)=~y+S|`+$1,++print+eval$q,q,a,
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Passing file handle to tee that goes into open
by pjkang7 (Novice) on Nov 09, 2016 at 22:43 UTC | |
by johngg (Canon) on Nov 10, 2016 at 11:11 UTC | |
by stevieb (Canon) on Nov 09, 2016 at 23:11 UTC |