in reply to Re^3: Perlfect aborted when loading DB_file.pm
in thread Perlfect aborted when loading DB_file.pm

# perl -MDB_File -e1 gave me an empty result back. And installation was

perl Makefile.pl make make test make install
which installed without errors.

Also, tes via ssh, i get it perfectly well, both indexer.pl & search.pl. I am only trying to get search.pl in cgi-bin dir worked so people could search via http.

Thank you all alot for your help! Regards, John

Replies are listed 'Best First'.
Re^5: Perlfect aborted when loading DB_file.pm
by Corion (Patriarch) on Dec 27, 2009 at 13:43 UTC

    This is weird, because your error message says that DB_File.pm contains a syntax error. Maybe the Perl that is run by your webserver to run your script is a different Perl than the one you get through ssh. I suggest removing all other code from your search.pl (or better, creating a new file) that only has the lines

    #!/usr/bin/perl -w use CGI::Carp 'fatalsToBrowser'; use DB_File; print "DB_File is OK\r\n";

    in it, to see whether DB_File on itself loads OK.