develooper Front page | perl.perl5.porters | Postings from July 2013

Re: Try/Catch Exception Objects: Possible?

Thread Previous | Thread Next
From:
David Golden
Date:
July 25, 2013 19:12
Subject:
Re: Try/Catch Exception Objects: Possible?
Message ID:
CAOeq1c-OcXnGejjgFKLu9dJk7ndU7_bbUC+dzoh8uKYzUmjK5g@mail.gmail.com
On Thu, Jul 25, 2013 at 12:36 PM, David E. Wheeler <david@kineticode.com> wrote:
>
> This works, of course:
>
>     if (my $f = 1) {
>         say $f;
>     }

Yes, despite parens, the "my $f" is outside the *block* defined by the braces.


-- 
David Golden <xdg@xdg.me>
Take back your inbox! → http://www.bunchmail.com/
Twitter/IRC: @xdg

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About