in reply to
How to write a program to read stdin or command line?
Ah
File::Tools
has an excellent suggestion of examples. His discussion of grep is just what you need.
Carter's compass: I know I'm on the right track when by deleting something, I'm adding functionality
Comment on
Re: How to write a program to read stdin or command line?
In Section
Seekers of Perl Wisdom