What if you're using the elements of @ARGV to hold keywords or other items?
I'd fail this one in code review, since it has a trivial fix, could cause significantly odd behavior, and indicates a confused mind in general.
My code-review rule is:
if you prompt to STDOUT, you should read from STDIN, not ARGV.
-- Randal L. Schwartz, Perl hacker
In reply to RE: RE: Answer: What is a good
by merlyn
in thread What is a good "Press any key to continue" code?
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |