Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: Re: Multiple STDIN sources

by perlfan (Vicar)
on Mar 10, 2004 at 14:27 UTC ( [id://335454]=note: print w/replies, xml ) Need Help??


in reply to Re: Multiple STDIN sources
in thread Multiple STDIN sources

Thank you all ... at some point I need to find a xp solution so it will work on non-*nix, but that is not a concern right now.

Replies are listed 'Best First'.
Re: Re: Re: Multiple STDIN sources
by dada (Chaplain) on Mar 10, 2004 at 15:03 UTC
    that's easy enough, fortunately. just change the open line from Abigail's code to read:
    if($^O eq 'MSWin32') { open(STDIN, "CON") or die $!; } else { open(STDIN, "/dev/tty") or die $!; }
    cheers,
    Aldo

    King of Laziness, Wizard of Impatience, Lord of Hubris

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://335454]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others examining the Monastery: (7)
As of 2024-03-28 12:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found