How do I create a message with interpolated variables and send it with Perl's Mail::Outlook?
I'm using Mail::Outlook to send messages, but when the con开发者_开发问答tent of the message is dynamic, for e.g. Time:$time\nEntry:$e
, it prints this as it is and doesn't substitute the variables. What do I do for that?
I notice that in the documentation for that module, the example code always uses single-quoted strings for the body text. Of course, if you use variables in a single-quoted string then the variables won't get expanded. Is that, perhaps, what you're doing?
This is only a guess though. You don't give anywhere near enough detail for us to give any real help.
精彩评论