summaryrefslogtreecommitdiffstats
path: root/perl/perl-TryCatch/README
diff options
context:
space:
mode:
author Jan F. Chadima2019-11-09 06:13:29 +0100
committer Willy Sudiarto Raharjo2019-11-09 06:13:29 +0100
commit9d480664ad04b3961b55cdfa71338cf1946f8715 (patch)
tree3b47a90d51dbfdc29ce27bd6fe73f21f5e751750 /perl/perl-TryCatch/README
parent1f08e8c3b7f6a215b9720b71200bc1f7439be445 (diff)
downloadslackbuilds-9d480664ad04b3961b55cdfa71338cf1946f8715.tar.gz
perl/perl-TryCatch: Added (Try - Catch operators for Perl 5).
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'perl/perl-TryCatch/README')
-rw-r--r--perl/perl-TryCatch/README8
1 files changed, 8 insertions, 0 deletions
diff --git a/perl/perl-TryCatch/README b/perl/perl-TryCatch/README
new file mode 100644
index 0000000000..8f4c4817bd
--- /dev/null
+++ b/perl/perl-TryCatch/README
@@ -0,0 +1,8 @@
+Trycatch is an extension of the Perl 5 object system.
+
+This module aims to provide a nicer syntax and method to catch errors in Perl,
+similar to what is found in other languages (such as Java, Python or C++).
+The standard method of using eval {}; if ($@) {} is often prone to subtle bugs,
+primarily that its far too easy to stomp on the error in error handlers.
+And also eval/if isn't the nicest idiom.
+