in reply to how to write a perl one liner?
See also: Special Variables, Command-Line Options, and One-Liners
HTH,