On 29/09/05, Ingo Blechschmidt <[EMAIL PROTECTED]> wrote:

> * "try { foo() } err next" will next even if foo() did not throw
>   an exception, but returned undef. But I don't think that's a problem
>   in most cases. One can always do:
>       try { foo(); 1 }

I think that's a flag that it's not a great idea.

For the example given, I'd rather write
  my $fh = try {open $_; CATCH {next} };

and still fit it on 1 line!

For what it's worth, I'd like to chime in on 'yes please' for having
fatals on by default.
I've been hanging round some perl forums lately, and it's such a
basic, recurrent issue.

Cheers,
Carl

Reply via email to