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.

    Tags for this post: perl(S)
    Related posts: The dangers of bad automated translation; Please don't; Bad server, no donut for you

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