develooper Front page | perl.perl5.porters | Postings from December 2017

Re: Revisiting smart match

Thread Previous | Thread Next
From:
Zefram
Date:
December 19, 2017 14:48
Subject:
Re: Revisiting smart match
Message ID:
20171219144827.GY25404@fysh.org
Rocco Caputo wrote:
>I missed something.  On the surface, the "when" form looks like it
>has the same syntax and semantics as plain old "if".

The switch keywords perform an implicit "next" at the end of the block
if they execute it, and they set up a special kind of dynamic scope that
"continue" can be used to leave.

-zefram

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