Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: STDIN following on?

by tfrayner (Curate)
on Aug 11, 2001 at 20:18 UTC ( [id://104155]=note: print w/replies, xml ) Need Help??


in reply to STDIN following on?

Okay, I think CheeseLord has it cracked. As he suggests, closing the STDIN filehandle and reopening it on the /dev/tty (or /dev/pts/xx or whatever) device from which the script was called works a treat. Thanks very much!

(Update): i.e.

use POSIX; close(STDIN); my $tty=POSIX::ctermid(); open(STDIN,"$tty");

Thanks very much!

Log In?
Username:
Password:

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

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

    No recent polls found