Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re^2: Using stdin only if there is input on it, but skipping it if there is no data

by mldvx4 (Friar)
on Nov 18, 2020 at 16:34 UTC ( [id://11123781]=note: print w/replies, xml ) Need Help??


in reply to Re: Using stdin only if there is input on it, but skipping it if there is no data
in thread Using stdin only if there is input on it, but skipping it if there is no data

Thanks. The link for Term::Key seems dead, but Term::TermKey is present. However, the CPAN page says that it is deprecated. Is there any other option for more formal solutions, besides getc?

Replies are listed 'Best First'.
Re^3: Using stdin only if there is input on it, but skipping it if there is no data
by hippo (Bishop) on Nov 18, 2020 at 17:03 UTC

    I'm not aware of any deprecation of Term::ReadKey so perhaps that might also be an option for you.


    🦛

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (3)
As of 2024-03-29 05:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found