S
Sam
I've been building a web application that accesses data from various
sources (either through APIs or scraping) and stores it in a database
(SQLite). Learning regexes, CGI, DBI, LWP, XMLRPC etc. for this has
been an exhilarating (and often frustrating) experience.
The current issue bugging me now is how to catch and display user
friendly error messages when the web app encounters any unexpected
errors - like missing Perl modules, DBI errors etc. I did come across
some web pages that suggested that this could be done using eval and
$SIG{__DIE__} but they were a bit too advanced for me (some offered
conflicting views that one shouldn't use eval / $SIG{__DIE__} ).
Please me point me to some resources that you have found helpful in
this area.
P.S: I am not looking for codes (examples are ofcourse appreciated) to
cut and paste but a basic understanding of how error catching should
be done properly in Perl CGI scripts using many modules.
[Posted through Google Groups].
sources (either through APIs or scraping) and stores it in a database
(SQLite). Learning regexes, CGI, DBI, LWP, XMLRPC etc. for this has
been an exhilarating (and often frustrating) experience.
The current issue bugging me now is how to catch and display user
friendly error messages when the web app encounters any unexpected
errors - like missing Perl modules, DBI errors etc. I did come across
some web pages that suggested that this could be done using eval and
$SIG{__DIE__} but they were a bit too advanced for me (some offered
conflicting views that one shouldn't use eval / $SIG{__DIE__} ).
Please me point me to some resources that you have found helpful in
this area.
P.S: I am not looking for codes (examples are ofcourse appreciated) to
cut and paste but a basic understanding of how error catching should
be done properly in Perl CGI scripts using many modules.
[Posted through Google Groups].