Re: Python or Perl for a Debian maintainance project?
On Thu, 19 Feb 2004, Matthias Urlichs wrote:
> a second problem is that eval{} catches everything. Usually, that's
> not what you want to do.
That's (sometimes) why the
eval { ... };
die $@ if $@ !~ //;
or similar construct comes into play. Moreover, most of the errors
where the code shouldn't die are related to various forms of use
strict; which can be turned off using the appropriate pragma. [But
discussing exception handling in perl is much easier if there's a
specific example in mind.]
Don Armstrong
--
Build a fire for a man, an he'll be warm for a day. Set a man on
fire, and he'll be warm for the rest of his life. -- Jules Bean
http://www.donarmstrong.com
http://rzlab.ucr.edu
Reply to: