in reply to $tm = localtime;

Perl is Perl (for the most part) - they should work fine on Windows and Unix with no changes. That said, I'm not familiar with the modules Date::Pcalc or Date::EzDate, if they use XS with specific Windows API calls there may be issues on Unix.

Have you tried running the commands as-is on Unix? What errors (if any) did you get?

Replies are listed 'Best First'.
Re^2: $tm = localtime;
by bNathan (Novice) on Feb 20, 2017 at 21:09 UTC

    use Strict;

    BEGIN not safe after errors--compilation aborted at /home/urmaster/www/cgi-bin/regproducts_process.pl line 205.

    205 use Date::Pcalc qw(Add_Delta_DHMS);<?p>

      BEGIN not safe after errors--compilation aborted at /home/urmaster/www/cgi-bin/regproducts_process.pl line 205.

      Thanks for this message. Unfortunately that is only the last line of the error block and only tells us where the problem happened and not what it was. Why not tell us the previous couple of error messages so we can see what it doesn't like about Date::Pcalc? Maybe it isn't installed or in the wrong place or with the wrong version or has a missing dependency or ...

      I'm assuming use Strict is use strict in your program and that your are using Time::Piece in order for $tm = localtime to be an object that you can call $tm->mday, $tm->mon+1, etc.