When I'm trying to use <STDIN> in scalar context my scripts are executed without me being able to give an inputIt sounds like something is already waiting on STDIN when you read from it. So when you read from STDIN in a scalar context it will read whatever's waiting but in list context it will continue reading until it receives an EOF. Further information about your system and perl version would go a great way towards finding a solution.
_________
broquaint
In reply to Re: STDIN behaves different according to context
by broquaint
in thread STDIN behaves different according to context
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |