in reply to Redirecting STDOUT to a FileHandle ?

I'm not sure if you mean that:
open STDOUT ">whatever.dat"; print "Hello World"; close STDOUT;
Now have a look in whatever.dat :^)
----------------------------------- --the good, the bad and the physi-- -----------------------------------

Replies are listed 'Best First'.
Re: Re: Redirecting STDOUT to a FileHandle ?
by chb (Deacon) on Apr 04, 2001 at 12:48 UTC
    No, I didn't mean that, I need a FileHandle variable which can be passed to a sub, and the sub does the redirect...
    But you are right, that didn't show up in my example code...
    -chb