Re: Rationale for $!

[email protected] (yary) Wed, 27 Jan 2016 13:59:20 -0500
Newsgroups perl.perl6.language
Message-ID <CAG2CFAZxQt33N-cTYzRRvspDbAjAJKmAYWn63m1xfuKFynW4gA@mail.gmail.com>
On Wed, Jan 27, 2016 at 11:00 AM, Felipe Gasper <[email protected]>
wrote:

> Could it not be:
>
> try my $f = open(...) or die …
>

Don't need a "try" there to make it work. An exception object/failure is
false, so "my $f = open(...) or die" will assign the exception to $f, which
is false, causing the "die" to execute.

-y