RE: fh duping

2003-01-06 Thread Beau E. Cox
Thamks david - Yep, fileno did the trick! Aloha => Beau. -Original Message- From: david [mailto:[EMAIL PROTECTED]] Sent: Monday, January 06, 2003 12:26 PM To: [EMAIL PROTECTED] Subject: Re: fh duping Beau E. Cox wrote: > Hi - > > I give up. Can someone help? I want to &

Re: fh duping

2003-01-06 Thread david
Beau E. Cox wrote: > Hi - > > I give up. Can someone help? I want to 'dup' an > IO::xxx handle to STDIN. My latest try is: > > #/usr/bin/perl > use strict; > use warnings; > use IO::File; > my $fh = new IO::File; > $fh->open("< some.file") or die "cannot open some.file"; > open (STDI

fh duping

2003-01-06 Thread Beau E. Cox
Hi - I give up. Can someone help? I want to 'dup' an IO::xxx handle to STDIN. My latest try is: #/usr/bin/perl use strict; use warnings; use IO::File; my $fh = new IO::File; $fh->open("< some.file") or die "cannot open some.file"; open (STDIN, "<&$fh") or die "cannot dup \$fh: $!\n";