I am writing the code in Perl and try to save it in the extension .pm not .pl
.pm
.pl
and I use use DBI; to import the DBI in order that
use DBI;
"Compilation failed in require" indicates compilation cannot continue beyond that point due to an earlier error. Solve the earlier error and this one will go away.