i believe ive found the error for it theres a , missing at the end of a line
print header(
-cookie => [$pntf_cookie_data, $my_pms_cookie],
-charset => "$masterCharset"
-type => "text/html",
);
this code has the coma missing from it should be this
print header(
-cookie => [$pntf_cookie_data, $my_pms_cookie],
-charset => "$masterCharset",
-type => "text/html",
);