You need to indicate how you are running your script, and some information about your environment, because the script works fine as it is, so you have a problem that is not related to the code you included here.
In reply to Re: Problems with <STDIN> in scalar context
by jasonk
in thread Problems with <STDIN> in scalar context
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |