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

Wow. This is amazing. Thank you. Now, how would be the best way to curl this into an email that sends this in data? I would need to curl a variable of some kind?

Replies are listed 'Best First'.
Re^5: parsing CSV
by GrandFather (Saint) on Oct 07, 2016 at 06:23 UTC

    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
      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.