why your loop doesn't exit: note that when you read a line from <STDIN> the input you get will contain the newline; so your eq comparison fails because it tests for exactly 'Q'. Use chomp on the input or add the newline to the string (be sure to use double quotes around the "Q" if you go this way -- but the first method is safer).
The rest will have to wait for <code> tags to be added.
Philosophy can be made out of anything. Or less -- Jerry A. Fodor
In reply to Re: Why is my array empty?
by arturo
in thread Why is my array empty?
by NodeReaper
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |