And if you checked to see what $index held, you'd see that it has a newline at the end of it. Try:
chomp($index = <STDIN>); if ($index eq 'Q') { ... }
In reply to Re: Array question II
by japhy
in thread Array question II
by tlynch001
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |