in reply to Capturing input from pipe?
Oft-used command line switches related to this subject are -p, -n,
and -a (especially in conjunction with -F).
See perlrun for how they work and what they do.
hdp.
In Section
Seekers of Perl Wisdom
in reply to Capturing input from pipe?
hdp.