D. J. Birkett wrote:
I have a script that pauses while the reader reads the intro text, and
askes them to press return to continue. At the moment I capture the
input from STDIN into a variable called $waste, do nothing with it, and
continue anyway. The script complains when it runs...
Name "main::waste" used only once: possible typo at ./addUsers line 66.
Is there a better way of doing this?
Yes, don't capture the input.
print 'Press return to continue.';
<STDIN>;
# continue running the program
John
--
use Perl;
program
fulfillment
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>