in reply to Substitution Operator
Since this also works for single letters, a slightly less optimized solution than tr/j/p/ is:
Your code could also benefit from use strict; which will help you practice good coding style, and taint checking which will help you realize the inherant insecurities of passing user input directly to system calls.$text =~ s/j/p/g;
-Blake
|
|---|