James Kipp wrote:
> 
> > > 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?
> >
> > 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 (<STDIN>) { last }

You don't need a loop for that as <STDIN> will wait for input.

<STDIN>; # wait for input from STDIN

> # continue
> print "what else...\n"; 



John
-- 
use Perl;
program
fulfillment

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to