Probably a question for about a Perl 150 class. My google foo is not finding a solution.
- I've got a Perl script that will be run through a web browser. - I want any warnings to go to the browser, so I've used CGI::Carp (and called things appropriately). - I have a common subroutine to print errors to the browser because, outputting to a browser, I need to print HTML stuff in addition to the error string. - I want to display where the error is coming from (because the line where it actually dies will be the same for all program errors.) so I have used confess. But CGI::Carp::confess displays "<h1>Software error:</h1> bunch-of-other-text-that-glazes-eyes" that I don't need. (End users say it is always the same error, cause they see all this additional text, and with all of that they do not see my error messages before it.) So... how do I die, print the calling line number, and not display a lot of extra stuff that is confusing end users? Paul -- -- You received this message because you are subscribed to the Google Groups "NLUG" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/nlug-talk?hl=en --- You received this message because you are subscribed to the Google Groups "NLUG" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
