Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

Hi there,
I have two questions about Perl I/O function:
Has Perl a unbuffered unechoed I/O function(such as getch()
in C)?
what is the difference between read() and sysread()?
Thanx for any your reply.

Replies are listed 'Best First'.
Re: I/O functions
by merlyn (Sage) on Oct 22, 2000 at 16:57 UTC
    For the first question, it's a FAQ, so you should probably start by reading (or at least skimming) the entire FAQ, either on your local disk by typing perldoc perlfaq or at the Monestary via perlman:perlfaq.

    As for the second, if you have to ask, you should still be using read(). {grin} But the answer to that is once again in the docs in perlman:perlfunc.

    -- Randal L. Schwartz, Perl hacker

Re: I/O functions
by mitd (Curate) on Oct 22, 2000 at 22:42 UTC
    Ok, assuming you did some reading like merlyn suggested and guessing that you are coding around with console i/o these two PM's should add to you coding pleasure.

    Term::Readkey
    Term::Readline::Perl

    <a href="http://www.georgian.net/~mitd>MitD -- Made in the Dark
    'My favourite colour appears to be grey.'

Re: I/O functions
by AgentM (Curate) on Oct 22, 2000 at 21:04 UTC
    Another place you might want to look at is Curses which is a termio/s wrapper library that greatly simplifies GUI-like text mode graphics. I use it all the time! It's fun and easy! Only $29.95! just joking, give it a whirl.
    AgentM Systems nor Nasca Enterprises nor Bone::Easy nor Macperl is responsible for the comments made by AgentM. Remember, you can build any logical system with NOR.