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

Hey guys, I'm new to Perl, I just want to know, whether is an equivalent of, kbhit() function(of C language) in Perl.

Replies are listed 'Best First'.
Re: kbhit equivalent
by ikegami (Patriarch) on Mar 11, 2010 at 06:12 UTC
    It doesn't appear actually be actually be part of C. Either way, I think you want Term::ReadKey
Re: kbhit equivalent
by afoken (Chancellor) on Mar 11, 2010 at 06:10 UTC

    ANSI C does not define a kbhit() function. What do you expect it to do?

    Alexander

    --
    Today I will gladly share my knowledge and experience, for there are no sweeter words than "I told you so". ;-)