Can't locate DBStuff.pm in @INC (@INC contains: .. /etc/perl /usr/local/lib/perl/5.14.2 /usr/local/share/perl/5.14.2 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.14 /usr/share/perl/5.14 /usr/local/lib/site_perl .) at /home/mysite.com/cgi-bin/scripts/check.pl line 10. BEGIN failed--compilation aborted at /home/mysite.com/cgi-bin/scripts/check.pl line 10. #### .. /cgi-bin /lib/ DBStuff.pm /scripts/ check.pl .. #### #!/usr/bin/perl use strict; use warnings; use CGI qw(escapeHTML); use Data::Dumper; use Date::Calc qw( Today_and_Now ); use lib '..'; # Add private library to path use DBStuff; ####>>>>>>>>>>>>>> This is my line 10 use MyLib::Log qw(do_log); if ($@) { warn "Cron job failed: $@\n"; } my $q = new CGI; $| = 1; BEGIN { my $log_error = 'error.txt'; use CGI::Carp qw(carpout); # Send all warnings to the log_file open STDERR, '>>', $log_error; } ...