in reply to Array question II
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') { ... }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Array question II
by tlynch001 (Initiate) on Mar 14, 2001 at 20:48 UTC | |
by davorg (Chancellor) on Mar 14, 2001 at 20:53 UTC |