Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: (tye)Re: select?

by BooK (Curate)
on Dec 27, 2000 at 23:29 UTC ( #48512=note: print w/ replies, xml ) Need Help??


in reply to (tye)Re: select?
in thread select?

Thanks, at least I know why it doesn't work on my Win32 box at work... :-)

As for line mode, wouldn't $| help? (mmm, doesn't look like it) Well, if this doesn't work, it seems there are still other options...

PS: Tye, there are two me, really: I do actually write readable, useful code. It's just not as fun...


Comment on Re: (tye)Re: select?
(tye)Re2: select?
by tye (Cardinal) on Dec 27, 2000 at 23:41 UTC

    No, $| controls auto-flushing of output which is often confused with buffering (which can be "none", "line", or "block" in Unix) but doesn't have much to do with input.

    To see characters from a Unix TTY before a newline, you need to get into "raw" or "semi cooked" mode instead of the usually "cooked" mode. "raw" means no processing is done and "semi cooked" means much (but not all of the usual) processing is done but you get characters as they are typed (though I still think there is a timer involved here so you usually don't even get them immediately, just almost immediately -- it has been too long since I had the misfortune to care about this stuff).

    I have yet to find a good way to read one character at a time in Win32, much less a module that portably handles this.

            - tye (but my friends call me "Tye")

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://48512]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (9)
As of 2014-09-16 10:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (7 votes), past polls