develooper Front page | perl.perl5.porters | Postings from March 2000

one for the todo list: open($dupfh, "<&$fh")

Thread Next
From:
Tom Christiansen
Date:
March 18, 2000 20:46
Subject:
one for the todo list: open($dupfh, "<&$fh")
Message ID:
23235.953441203@chthon
    my($fh, $dupfh);
    open($fh, "< /etc/motd") || die $!;

Then one of more of these should work:

    open($dupfh, "<&$fh")    || die $!;
    open($dupfh, "<&=$fh")    || die $!;
    open($dupfh, "<$fh")    || die $!;

--tom

Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About