in reply to uppercase/lowercase in a single expression
perl -pi.bak -e 'tr{A-Za-z}{a-zA-Z};' filename [download]
You will need to use double-quotes if on MS Windows.
Cheers,
JohnGG