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

Re: Reading Input Question

by quester (Vicar)
on Feb 05, 2008 at 05:29 UTC ( [id://666213]=note: print w/replies, xml ) Need Help??


in reply to Reading Input Question

Not pretty, not efficient, and not even pure Perl, but if you really don't want to use CPAN modules for some reason, look at the example in perlfunc under getc.

Replies are listed 'Best First'.
Re^2: Reading Input Question
by ikegami (Patriarch) on Feb 05, 2008 at 06:04 UTC

    No. getc, read and sysread don't work. They don't return anything before an Enter is received.

    By the way, why did you say getc isn't pretty?

    Update: Ah, you mean in conjunction with stty. Nevermind.

Log In?
Username:
Password:

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

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

    No recent polls found