Thanks Eliot.
I did exactly what you said but I am still getting 500 error.
require "/home/my_name/public_html/cgi-bin/links/admin/links.cfg";
I am executing this script from data directory too.
I also changed the code to
$db_dateadded = $db_modified;
I don't know what to do anymore.
Regards,
Pagla