in reply to Error: unmatched ) before HERE mark in regex... (was: Help)

You probably want
$my{'msg'}=~s/\Q$name\E/<img src=\"interface\/$image\">/g;
Check out
perldoc perlre perldoc -f quotemeta
-- Joost downtime n. The period during which a system is error-free and immune from user input.