Loading ...
Sorry, an error occurred while loading the content.

Re: [PBML] How to make STDIN unbuffered in Perl.

Expand Messages
  • merlyn@stonehenge.com
    ... Sreeram In Unix, the standard input is line-buffered. ie till we Sreeram press the ENTER key, we will not get the input Sreeram characters. How
    Message 1 of 2 , Aug 31, 2005
    • 0 Attachment
      >>>>> "Sreeram" == Sreeram B S <sreeramabsc@...> writes:

      Sreeram> In Unix, the standard input is line-buffered. ie till we
      Sreeram> press the ENTER key, we will not get the input
      Sreeram> characters. How do we make this UNBUFFERED in Perl?

      This is a FAQ. See "perldoc perlfaq5" under
      How can I read a single character from a file? From the keyboard?

      --
      Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
      <merlyn@...> <URL:http://www.stonehenge.com/merlyn/>
      Perl/Unix/security consulting, Technical writing, Comedy, etc. etc.
      See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training!
    Your message has been successfully submitted and would be delivered to recipients shortly.