in reply to I need help with pattern matching

tr/0-9/cd $new_string = substr($_, -5);