Archive for the ‘PerlTips’ Category

Sending Email with Perl

envelope Sending Email with PerlRecently I needed to send our team an email.  Yeah okay, so I email a lot, but this was different.  I needed to send my team an email from a server that was not anywhere near a mail server, and that was pretty paired down.  I did a bunch of Googling for answers and came up with quite a few that didn’t work.

I hate it when that happens.  So as a form of perl tutorial, I am posting my working script here as an example of sending email from a limited server using perl and the MIME::Lite library.

(more…)

Wednesday, May 26th, 2010

Perl Tricks – timestamps

stopwatch 150x150 Perl Tricks   timestampsRunning perl integration tools we have two basic needs for time stamps and date time values.

First, it is useful to note the time that something is happening in a log file so that we don’t have to guess.

Second, it is also useful to append the date to a file name to keep our logs in daily files not just one long never ending file.

Here is a function that I use to do both of these things. (more…)

Thursday, April 29th, 2010