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
In reply to Re^2: What is the output of perl command?
by cheekuperl
in thread What is the output of perl command?
by 7stud
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |