in reply to Question about a perl script

The Perl one liner you show should be pretty safe to run. To get a handle on what's going on start with perlintro and command switches then take a look at perlrequick for an overview of the regular expression bit.

Perl is the programming world's equivalent of English