Vishal Mittal wrote:

> Hi,
> 
> I have something like this
> 
> my $child = new IO::Handle;
> 
> When I try to redirect this handle to a filehandle
> using
> 
> open(MY_DESCRIPTOR, ">&$child");
> 
> it gives me an error. What is it that I am doing wrong
> ??

try this instead:

$child = new IO::Handle;
$child->fdopen(fileno(STDOUT),"w");
open(MY_DESCRIPTOR, ">&" . $child->fileno) || die $!;

david

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to