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

Re: Revisiting smart match

Thread Previous | Thread Next
December 19, 2017 14:48
Re: Revisiting smart match
Message ID:
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.


Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About