Checking whether or not the hash key is defined or exists is faster and more clear than running a regex to see if it contains a digit.$parts[$index{Name}] =~ tr/A-Za-z/B-Wzb-w/ if defined ($index{Name});
Perhaps you need something similar to this on other replacements also?
In reply to Re^2: Parsing Header Last Field
by Marshall
in thread Parsing Header Last Field
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |