in reply to Re: Reading in from CLI (UNIX)
in thread Reading in from CLI (UNIX)

Why not take your advice at Two-arg open() considered dangerous and switch to the 3-arg version of the same?

Sure, it doesn't make any real difference here, but a good habit is to be encouraged at all turns. :-)

  • Comment on Re (tilly) 2: Reading in from CLI (UNIX)

Replies are listed 'Best First'.
You can't get there from here (was Re: Reading in from CLI (UNIX))
by chip (Curate) on Jan 03, 2002 at 03:23 UTC
    Using three-arg open for '<&3' would be a good idea, if only it were possible. But my docs say it's not, at least in 5.6. Quoting perldoc -f open:

    Duping file handles is not yet supported for 3-argument open().

    <getsmart>Missed it by this much.</getsmart>

        -- Chip Salzenberg, Free-Floating Agent of Chaos

      D'oh. It is supported in bleadperl, which was the documentation that I looked up before posting...

      My bad.