in reply to Re: What is the output of perl command?
in thread What is the output of perl command?
ls does not need input to run. So, it ran and gave the output, perl still waiting for some input.$ perl | ls
and you will see both perl and wc waiting for their respective inputs- perl from the user and wc from the pipe.$ perl | wc -l
|
|---|