>>>>> "Rob" == Rob Dixon <rob.di...@gmx.com> writes:
Rob> For me, the bottom line is that try / catch is a funky showpiece that Rob> pushes Perl syntax beyond its limits. No one who sees your code will Rob> thank you for using it, and you should remove it in preference of a Rob> simple check on $@. Completely disagree. Checking $@ *appears* to be easy, but is prone to error. Try::Tiny is best of breed to fix this. I would prefer people use Try::Tiny instead of trying to handcraft the $@ checking and getting it wrong. For example, if you don't know what's wrong with this: eval { ... }; if ($@) { ... } then you *need* to start using Try::Tiny. See especially the section beginning "BACKGROUND" on the Try::Tiny manpage. -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 <mer...@stonehenge.com> <URL:http://www.stonehenge.com/merlyn/> Smalltalk/Perl/Unix consulting, Technical writing, Comedy, etc. etc. See http://methodsandmessages.posterous.com/ for Smalltalk discussion -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/