[sf-perl] [blogpost] "Moving Perl up the value chain"

yary not.com at gmail.com
Wed Jul 21 11:00:45 PDT 2010


Hi Monte,

Thanks for doing the good work. Next time you're faced with a file
reformatting project, go ahead and ask here (or at perlmonks.org and
email here with a link.) You're bound to get some educational
responses. If a text file is confidential, you can anonymize it before
posting like so-

perl -p -e "tr/1-9A-Za-z/000000000x/" original.txt > anon.txt

replaces all digits with 0 and letters with x, preserving punctuation.
May not be good for all you're working with but it's a start.

-y


More information about the SanFrancisco-pm mailing list