Capturing a multi-line message for alert email

Hi all, I'm using a perl script that returns the age of a file. In addition to that data, I want to capture the last 10 lines of that file, so that if the alert triggers I can easily see the last thing written to it. So I capture those last lines and store them as a variable "$lastlines", then print that as my message. However, output result and in the alert email, it only outputs the first line of the variable. Is there something I can do to in order to capture the full multi-line message? Thank you very much

The relevant lines:

$lastlines = `tail -n 10 $file`;

print "Message.1: Logtail: $lastlines";

And the result output: