Edward, -pe is simply a shortcut for the common case, and you don't always want to print.
Simple example: perl -ne 'print if /foo/' I tend not to write many one liners, except for a short time when I was writing one liners for perl golf. [About 2-3 years back, [EMAIL PROTECTED] mailing list now [EMAIL PROTECTED] for perl golf]. Jonathan Paton -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>