in reply to Perl Database connect not working in .pm file
Perl says that it can't find DBI.pm. Are you maybe running your script with a different version of Perl or a different environment than when you use your Perl module Marketplace.pm? The difference could be a webserver or a cron job?
Otherwise, maybe try to locate where DBI.pm is, and then find out why Perl doesn't find it in one situation:
find / -name 'DBI.pm'
perl -MDBI -wle 'print $INC{"DBI.pm"}'
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Perl Database connect not working in .pm file
by kanewilliam7777 (Novice) on Aug 31, 2018 at 06:20 UTC | |
by poj (Abbot) on Aug 31, 2018 at 06:35 UTC |