Canít connect to the DB: Too many connections

Software error:

Can't call method "prepare" on an undefined value at f:/localuser/textv/cgi-bin/modules/SQL_routine_network_old.pl line 259.

For help, please send mail to this site's webmaster, giving this error message and the time and date of the error.

Software error:

[Sat Jan 20 09:25:54 2018] index.pl: Can't call method "prepare" on an undefined value at f:/localuser/textv/cgi-bin/modules/SQL_routine_network_old.pl line 259.
Compilation failed in require at F:\localuser\foodhygienerating.me.uk\council\Huntingdonshire\index.pl line 8.

For help, please send mail to this site's webmaster, giving this error message and the time and date of the error.