in reply to STDIN behaves different according to context
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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: STDIN behaves different according to context
by hardburn (Abbot) on Feb 17, 2003 at 15:00 UTC | |
|
Re^2: STDIN behaves different according to context
by LAI (Hermit) on Feb 17, 2003 at 13:52 UTC | |
|
Re: Re: STDIN behaves different according to context
by Anonymous Monk on Feb 18, 2003 at 07:52 UTC |