($_ contains a line of the file) substr( $_, 0, 16) =~ tr/0-9/AB\-C-HJK/; That will make the substitution directly in $_ . A substitution like this is not sturdy encryption, just an obscuration.
Update: Changed tr string to fit the spec.
After Compline,
Zaxo
In reply to Re: Simple Encryption question
by Zaxo
in thread Simple Encryption question
by rman
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |