in reply to dbmopen does not work
Are you checking for failure and printing an error message? That error message will probably help you a lot more than we can, given the information we have.
Note that dbmopen has been "largely superceded by tie":dbmopen(%hash, $config_file, 0666) or die "Couldn't open DBM: $!";
If this is a CGI script you may need to examine the server error logs for the resulting error messages, or use something like CGI::Carp to send them to the browser:use NDBM_File; use Fcntl; tie(%hash, 'NDBM_File', $config_file, O_RDWR|O_CREAT, 0640) or die "Couldn't open NDBM: $!";
use CGI::Carp 'fatalsToBrowser';
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Re: dbmopen does not work
by sinan (Sexton) on Nov 19, 2000 at 22:57 UTC | |
by Fastolfe (Vicar) on Nov 19, 2000 at 23:02 UTC | |
by sinan (Sexton) on Nov 19, 2000 at 23:23 UTC | |
by tilly (Archbishop) on Nov 19, 2000 at 23:38 UTC |