die() in a CGI

    So, I've been battling for a couple of days with how best to die() in a perl script while running a CGI script... The problem is that I really want the user in browser land to know about the error too. Then SJH pointed me at a web page which suggests this:

      
      use CGI::Carp qw(fatalsToBrowser); 
      
      


    Which is lovely and just works. Me likey.

posted at: 00:43 | path: /perl | permanent link to this entry

    Add a comment to this post:

    Your name:

    Your email: Email me new comments on this post
      (Your email will not be published on this site, and will only be used to contact you directly with a reply to your comment if needed. Oh, and we'll use it to send you new comments on this post it you selected that checkbox.)


    Your website:

    Comments: