in reply to Re^3: Mail::Sendmail multiline Message
in thread Mail::Sendmail multiline Message

In ksh, I am creating lines like:
echo "This is line1" >> mail_content (file)
echo "this is line2" >> mail_content

Then, "mail ..subject.. ip address.. < mail_content"

I am assuming same process in Perl??
Ken

Replies are listed 'Best First'.
Re^5: Mail::Sendmail multiline Message
by Corion (Patriarch) on Mar 17, 2010 at 14:14 UTC

    That's not the process I would have used under ksh. I would build up a variable in ksh using a here-document or a string that spans multiple lines. The equivalent process to your echo approach would be to append the strings to a variable using the dot operator (.). Maybe you want to read perlop now?