I am having an issue connecting to my Postgresql database with a perl script. The issue is regarding DBI. The script produces this error:
Can't locate object method "connect" via package "DBI" (perhaps you forgot to load "DBI"?)
in the script i have:
I thought perhaps it wasn't installed but when I tried to install it again I got the response:
DBI is up to date.
A while back when I couldn't get it to work I tried copying the DBI.pm into several folders of the Perl 5.8.1 folders. Is it possible that these copies are messing things up?
Since I don't remember which files were the ones I copied and which are the ones actually installed when I loaded them using the:
perl -MCPAN -e 'install Bundle::DBI'
I thought deleting the module and doing a clean install might help (i don't know if this matters...kinda new to unix environment)
Does anyone know how to fix this problem. I greatly appreciate some help.