out
> > > modules?
> >
> > This will do the trick:
> >
> > while (1) {
> > print "Press any key to continue... ";
> > getc;
> > print "LOOP\n";
> > }
>
> Can also wait for STDIN:
>
On Wednesday 19 March 2003 10:24, Nick Drage wrote:
> Quite a simple request, but I've had trouble finding an answer.
Not a simple request, I'm afraid. Niether using getc, nor reading will
work unless the user presses 'enter'.
> I'd like my program to wait until the user presses any key, and th
>
> This will do the trick:
>
> while (1) {
> print "Press any key to continue... ";
> getc;
> print "LOOP\n";
> }
>
Can also wait for STDIN:
print "press a key: ";
until () { last }
# continue
print "what e
ill do the trick:
while (1) {
print "Press any key to continue... ";
getc;
print "LOOP\n";
}
But you must still have the STDIN handle opened on the
console (which it is by default).
HTH,
Rob
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Hi,
Quite a simple request, but I've had trouble finding an answer.
I'd like my program to wait until the user presses any key, and then just
continue. Is there an easy way to do this? A way without modules?
--
FunkyJesus System Administration Team
--
To unsubscribe, e-mail: [EMAIL PROTECT
> -Original Message-
> From: Dmitri Zakharov [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, January 23, 2002 2:47 PM
> To: [EMAIL PROTECTED]
> Subject: Press any key to continue...
>
>
> Hi everybody;
>
> Here's a perl newbie problem:
> I'm won
Is this on windows??
If so:
system("pause");
HTH
John
-Original Message-
From: Dmitri Zakharov [mailto:[EMAIL PROTECTED]]
Sent: 23 January 2002 19:47
To: [EMAIL PROTECTED]
Subject: Press any key to continue...
Hi everybody;
Here's a perl newbie problem:
I'm w
Hi everybody;
Here's a perl newbie problem:
I'm wondering how could I suspend the execution of
the perl script untill the user hits any key ( not only Enter )
Any help is appreciated.
dmitri--; :o(
--
Dmitri Zakharov
email: [EMAIL PROTECTED]
phone: (514)938-7389
--
To unsubscribe, e-mail: