Difference between revisions of "Perl"
Jump to navigation
Jump to search
m (→Questions: exception.pm) |
m (→Questions: code from Tene) |
||
Line 11: | Line 11: | ||
*[http://search.cpan.org/ CPAN]: search the Comprehensive Perl Archive Network | *[http://search.cpan.org/ CPAN]: search the Comprehensive Perl Archive Network | ||
==Questions== | ==Questions== | ||
− | * Is it possible to intercept errors in Perl? This is especially critical when developing web applications, as a crashed Perl program will return a failure code to the web server (usually Apache), causing either a "500 Internal Server" error due to "premature end of script headers" or else a truncation of the output (with no apparent cause). Tracing these errors is especially difficult since Perl has no block-comment syntax (that I know of). '''Follow-up''': [http://www.perl.com/pub/a/2002/11/14/exception.html this] would seem to be a guide to exception-handling in Perl. Also [http://search.cpan.org/~pjordan/Exception-1.7/Exception.pm this]. | + | * Is it possible to intercept errors in Perl? This is especially critical when developing web applications, as a crashed Perl program will return a failure code to the web server (usually Apache), causing either a "500 Internal Server" error due to "premature end of script headers" or else a truncation of the output (with no apparent cause). Tracing these errors is especially difficult since Perl has no block-comment syntax (that I know of). '''Follow-up''': [http://www.perl.com/pub/a/2002/11/14/exception.html this] would seem to be a guide to exception-handling in Perl. Also [http://search.cpan.org/~pjordan/Exception-1.7/Exception.pm this]. And this: "use CGI::Carp qw(fatalsToBrowser);" |
Revision as of 00:13, 23 January 2006
This page is a seed article. You can help HTYP water it: make a request to expand a given page and/or donate to help give us more writing-hours!
|
Perl is a programming language widely used for web sites and Linux servers. It can be somewhat baffling to the eye – largely due to the frequent use of regular expressions – but due to its popularity it has been greatly refined and there is a large base of existing code available for reuse.
Articles
Other Documentation
- CPAN: documentation links at the Comprehensive Perl Archive Network
Libraries and Modules
- CPAN: search the Comprehensive Perl Archive Network
Questions
- Is it possible to intercept errors in Perl? This is especially critical when developing web applications, as a crashed Perl program will return a failure code to the web server (usually Apache), causing either a "500 Internal Server" error due to "premature end of script headers" or else a truncation of the output (with no apparent cause). Tracing these errors is especially difficult since Perl has no block-comment syntax (that I know of). Follow-up: this would seem to be a guide to exception-handling in Perl. Also this. And this: "use CGI::Carp qw(fatalsToBrowser);"