$message_ref->[0] =~ s/\b$key\b/$method{$key}/; [download]
In reply to Re: Matching and replacing by benn in thread Matching and replacing by Anonymous Monk