in reply to Re: CGI::Carp won't send fatalsToBrowser
in thread CGI::Carp won't send fatalsToBrowser

I'm probably being thick... but is this in the right thread? If so, cd you elucidate it a little bit for me?

§ George Sherston
  • Comment on Re: Re: CGI::Carp won't send fatalsToBrowser

Replies are listed 'Best First'.
Re: CGI::Carp won't send fatalsToBrowser
by cLive ;-) (Prior) on Dec 13, 2001 at 05:22 UTC
    All I meant was, if CGI::Carp doesn't seem to work, this little snippet might help. ie. upload it into the same directory, amending the 'foo.pl' (x2) as necessary and look at the output in your browser. Since it evals the script, it traps the error and allows you to send it to the browser.

    cLive ;-)

    ps - if you need more inffo on this, why not /msg me...

      Aha - yes, I geddit, that's very handy. Thanks.

      BTW, for the benefit of future users of the thread, I found I needed a ; after <code>eval { require 'foo.pl'; }

      § George Sherston