in reply to Search and Replace

Combine the -p and -i switch to get a handy one-liner
perl -i.bak -pe 'tr[~][\r]' yourfile
See. perlrun for more info on the switches used above.
HTH

_________
broquaint