Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: Sharing Configuration between Multiple CGI Scripts (was: How difficult can)

by fruiture (Curate)
on Aug 08, 2002 at 16:14 UTC ( [id://188628]=note: print w/replies, xml ) Need Help??


in reply to Sharing Configuration between Multiple CGI Scripts (was: How difficult can)

Well, you get a "500 Server Error" from your httpd, but perl certainly gives you a more helpfull message, which can be found in the error-log of your server. I can imagine that you have a nasty ISP that does not give your error-log access: use the module CGI::Carp and import 'fatalsToBrowser', that will catch all occuring errors and spit them to your browser.

Also note that the current working directory is not guaranteed to be the directory your script is in (although afaik the Apache ensures it), at least no CGI spec says so. Try adding the following BEGIN-Block:

BEGIN { use CGI::Carp 'fatalsToBrowser'; require FindBin; chdir $FindBin::Bin; }
--
http://fruiture.de
  • Comment on Re: Sharing Configuration between Multiple CGI Scripts (was: How difficult can)
  • Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://188628]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (1)
As of 2024-04-25 04:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found