View Single Post
  #2 (permalink)  
Old 12-30-2008, 10:18 PM
cpdan cpdan is offline
cPanel Staff
 
Join Date: Mar 2004
Posts: 645
cpdan is on a distinguished road
Hello,

'use DBI;' is indeed how to load to load a perl module.

The "weird" INC paths are due to the way cPanel is compiled.

Adding paths to @INC might allow a module to be included *BUT*:
- the perl version is likely to be different on different server or change (IE the paths would be wrong most of the time)
- if there is any linking/XS involved (DBI and driver's) there could be issues also (perl binary vs. cpanel binary)

If you can outline what you are needing DBI for I will be able to recommend a solution, thanks!
Reply With Quote