Re: press any key

2003-03-19 Thread John W. Krahn
out > > > modules? > > > > This will do the trick: > > > > while (1) { > > print "Press any key to continue... "; > > getc; > > print "LOOP\n"; > > } > > Can also wait for STDIN: >

Re: press any key

2003-03-19 Thread Nigel Wetters
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

RE: press any key

2003-03-19 Thread Kipp, James
> > 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

Re: press any key

2003-03-19 Thread Rob Dixon
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]

press any key

2003-03-19 Thread Nick Drage
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

RE: Press any key to continue...

2002-01-24 Thread Bob Showalter
> -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

RE: Press any key to continue...

2002-01-24 Thread John Edwards
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

Press any key to continue...

2002-01-24 Thread Dmitri Zakharov
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: