Re: Converting IO::Handle to filehandle

2002-10-18 Thread Michael Fowler
On Wed, Oct 16, 2002 at 10:15:12AM -0700, vishal mittal wrote: > my $child = new IO::Handle; > > When I try to redirect this handle to a filehandle > using > > open(MY_DESCRIPTOR, ">&$child"); $child is already a filehandle, you shouldn't need to redirect it to another. What is it you're tryin

Re: Converting IO::Handle to filehandle

2002-10-18 Thread david
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::Ha

Re: Converting IO::Handle to filehandle

2002-10-16 Thread John W. Krahn
Vishal Mittal wrote: > > Hi, Hello, > 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"); ">&" means to duplicate an existing file handle. > it gives me an error. What is it that I a