in reply to Conflict between CGI.pm & dbm Files?
My initial guess is that you have a permissions problem and your CGI code is running with your Web server's permissions and the file cannot be opened with those permissions. Check your Web server's error log for the message.
Another thing you can do is send your fatal error message directly to the browser.
#!/apps/PERL5/bin/perl -wT use CGI qw/ :standard /; use CGI::Carp qw/ fatalsToBrowser /; # remove for production use strict; print header, start_html, p( 'One' ); my $file = "/apps/servicelist/SLNamesDBMs/srv_name_new_to_represents"; dbmopen(%dbm_New_Eng, $file, 0644) or die "Cannot open ($file): $!"; print p( 'Two' ), end_html;
Miscellaneous comments:
Cheers,
Ovid
Join the Perlmonks Setiathome Group or just click on the the link and check out our stats.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Conflict between CGI.pm & dbm Files?
by heezy (Monk) on Sep 30, 2002 at 22:26 UTC | |
by hiseldl (Priest) on Sep 30, 2002 at 23:45 UTC |