in reply to Unevaling part of an eval block
I have to assume (since I don't know better) that the email address is being interpolated.
You're thinking of eval STRING, which is very different from the eval BLOCK that you have here.
By the way, you can get rid of the parentheses in:
(new Mail::Sender)->MailMsg... if you use the unambiguous method invocation syntax:
Mail::Sender->new->MailMsg
|
|---|