in reply to Re: $tm = localtime;
in thread $tm = localtime;

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>

Replies are listed 'Best First'.
Re^3: $tm = localtime;
by hippo (Archbishop) on Feb 21, 2017 at 08:17 UTC
    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 ...

Re^3: $tm = localtime;
by Cristoforo (Curate) on Feb 21, 2017 at 03:18 UTC
    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.