in reply to Order of output when switching filehandles
#!/usr/bin/perl -w use strict; use IO::Tee; open FH,">somefile" or die "error opening $!"; my $tee=IO::Tee->new(\*STDOUT,\*FH); select $tee; print "foo\n"; print "bar\n"; close FH;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
RE: Re: Order of output when switching filehandles
by Cirollo (Friar) on Aug 14, 2000 at 23:45 UTC |