Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: (tye)Re: select?

by BooK (Curate)
on Dec 27, 2000 at 23:29 UTC ( [id://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...

Replies are listed 'Best First'.
(tye)Re2: select?
by tye (Sage) 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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://48512]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others romping around the Monastery: (4)
As of 2024-04-25 13:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found