Can't locate NDBM_File.pm in @INC

colet

Member
Apr 26, 2006
22
0
151
Hello,

I wrote a perl script a few weeks ago that uses NDBM_File.pm. The script was working, but now dies with:
Can't locate NDBM_File.pm in @INC

Could a cpanel update cause this?

When I run locate NDBM_File.pm, I find 10 other versions, but none seem to be in my include path.

Thanks for any tips.

--
Cole
 

logicsupport

Well-Known Member
Jun 5, 2007
138
0
166
I believe the latest version of perl doesn't have this .

What is the server perl version

perl -v

Just try to copy NDBM_File.pm to the server current perl path .That may help

Or else let me know on which line of the script does it shows error .

Does it have anything like

Eval 'use AnyDBM_File';

Try to remove that line.