Hope this helps,#! /usr/bin/perl -w use FileHandle; $fh=FileHandle->new(">blarg"); die 'Not open' unless defined $fh; open(STDOUT, ">&".$fh->fileno) or die "Argh: $!"; print "foo bar\nbaz\n"; $fh->close();
Jeroen
"We are not alone"(FZ)
In reply to Re: Redirecting STDOUT to a FileHandle ?
by jeroenes
in thread Redirecting STDOUT to a FileHandle ?
by chb
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |