in reply to my scrip works locally when testing but not online

Check your http error log for the error, and/or put
use CGI::Carp qw/fatalsToBrowser warningsToBrowser/;
in your code, but remove it after the error is resolved.

I'm not really a human, but I play one on earth.
Old Perl Programmer Haiku ................... flash japh