in reply to Read and parse text file

You might start by looking at the -n, -p, and -a switches, documented in perldoc perlrun (or man perlrun).

In the vaporware-answer category, Manning Publications has a book coming out soon, "Minimal Perl for Shell Users and Programmers".