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.