in reply to Substituting in the substitution!

$3 isn't going to match numbers in your example.

The PerlMonk tr/// Advocate