Back to Table of Contents

Install Time perl Module

In our example, we will be submitting an email to FirstClass that contains a date field on our custom form. FirstClass stores dates as the number of seconds from Jan 1, 1904. The date submitted on our form needs to be converted to seconds. You can install a perl module that will do the first part of this and we will use this in our perl script so that your FIrstClass message will receive the correct date.

Create a 'time' directory (Windows)

Create a new directory in \Perl64\site\lib and call it time

Create a Time directory (Macintosh)

Inside your /Library/Perl folder on your Macintosh, you will find one or more folders, named 5.xx In the most recent version, create a folder called Time.

Install the time modules

In this lesson, you were asked to download and extract the support files. Inside there, you will find the Local.pm modules. Copy this file to the time directory that you have just created.