To OP: do perldoc perlrun for the explaination of the -i switch including how to have it make backup copies for you. Also, you may want * instead of *.* for _all_ (including extension-less ones) (though note that on linux that won't get hidden files)