Re: sysread and buffering

2001-04-24 Thread sfink
Paul wrote: > > Another possible solution is to use Brian Ingerson's Inline.pm and code > the reads &c. with C's lower level IO. I think a C getc() would do > it > > But be warned that, while it's actually quite friendly, a raw beginner > might have some trouble with the Inline stuff, especi

RE: sysread and buffering

2001-04-24 Thread Lee, Janet
In case inquiring minds would like to know... Actually, the reason why I am trying to do this in PERL in the first place is because I couldn't figure out how to do it in C++ on a UNIX machine (getchar is not supposed to buffer, but it does in some cases). I thought I would try it in PERL on UNIX

RE: sysread and buffering

2001-04-24 Thread Nic LAWRENCE
Woah! Perl has a getc() function?!! /me goes to look it up! :) Schwing! > -Original Message- > From: Sean O'Leary [mailto:[EMAIL PROTECTED]] > Sent: 24 April 2001 10:16 > To: [EMAIL PROTECTED] > Subject: Re: sysread and buffering > ... > > But all that'

Re: sysread and buffering

2001-04-24 Thread Paul
--- Sean O'Leary <[EMAIL PROTECTED]> wrote: > At 10:27 AM 4/24/2001, you wrote: > > Another possible solution is to use Brian Ingerson's Inline.pm and > > code the reads &c. with C's lower level IO. I think a C getc() would > > do it > > > > But be warned that, while it's actually quite frie

Re: sysread and buffering

2001-04-24 Thread Sean O'Leary
At 10:27 AM 4/24/2001, you wrote: >Another possible solution is to use Brian Ingerson's Inline.pm and code >the reads &c. with C's lower level IO. I think a C getc() would do >it > >But be warned that, while it's actually quite friendly, a raw beginner >might have some trouble with the Inline

Re: sysread and buffering

2001-04-24 Thread Paul
Another possible solution is to use Brian Ingerson's Inline.pm and code the reads &c. with C's lower level IO. I think a C getc() would do it But be warned that, while it's actually quite friendly, a raw beginner might have some trouble with the Inline stuff, especially if they don't know C.

Re: sysread and buffering

2001-04-23 Thread Sean O'Leary
At 05:25 PM 4/23/2001, Janet Lee wrote: >Hi all. > >I'm trying to do what I think is a very simple thing. I want to read >keyboard input char by char and time the difference between each keystroke. >I've tried using > >while (sysread STDIN, $key, 1) { > dostuff >}; > >but that seems to be

sysread and buffering

2001-04-23 Thread Lee, Janet
Hi all. I'm trying to do what I think is a very simple thing. I want to read keyboard input char by char and time the difference between each keystroke. I've tried using while (sysread STDIN, $key, 1) { dostuff }; but that seems to be doing some kind of buffering so that the body of th