in reply to perl on the commandline

Have you read about the difference between -n and -p at perlrun? If you're still confused after reading the explanation there, come back and I'll walk you through it.

-Blake