in reply to Re^4: parsing CSV
in thread parsing CSV

I'd use MIME::Lite (despite the "Wait!" warning paragraph) especially if all you want is a text only email without attachments.

Premature optimization is the root of all job security

Replies are listed 'Best First'.
Re^6: parsing CSV
by younggrasshopper13 (Novice) on Oct 07, 2016 at 07:03 UTC
    Okay, so I'd just add this to the bottom of the perl script and it would send the Standard output of the script as the contents of the email?

      The common approach is to read the documentation of a module instead of guessing what it does.

      If you want to blindly mail the standard output of a script, consider piping its output into the mailx or sendmail program.

        I apologize for my lack of knowledge in this area. I'm a complete novice in perl. I've been reading the MIME documentation. I see how to set up mail. The thing that isn't clear to me is how I would use MIME in the script above to email the scripts output. What I'm not getting is how to pipe the output of the script into an email body.
        The only experience I've had in mailing output is by setting variables to urls and then curl that variable