Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number

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...

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?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://48512]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (5)
As of 2018-06-22 01:29 GMT
Find Nodes?
    Voting Booth?
    Should cpanminus be part of the standard Perl release?

    Results (120 votes). Check out past polls.