in reply to uppercase/lowercase in a single expression

You could edit the file in place from the command line like this

perl -pi.bak -e 'tr{A-Za-z}{a-zA-Z};' filename

You will need to use double-quotes if on MS Windows.

Cheers,

JohnGG