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 &
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
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";