SPUG: system() eating STDIN, how to avoid?
haircut at gmail.com
Fri Jul 1 12:18:22 PDT 2005
On 6/30/05, James Moore <james at banshee.com> wrote:
> Something in the system() call seems to be eating from standard input,
I'm unable to reproduce this.
I wrote the following script (called stdin_eat.pl):
system('true') == 0 or die;
I try the following:
$ echo -e "hello world\n" > test.txt
$ perl -w stdin_eat.pl < test.txt
Am I missing something?
More information about the spug-list