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

Hi monks,
is there a way to read from stdin withou waiting for CR?
like this tricks in bash: read -t 1 -n 1

thanks

Replies are listed 'Best First'.
Re: read from stdin
by BrowserUk (Patriarch) on Dec 05, 2014 at 14:23 UTC

    See Term::ReadKey.


    With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
    Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
    "Science is about questioning the status quo. Questioning authority".
    In the absence of evidence, opinion is indistinguishable from prejudice.
      perfect, thanks!