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