DEV Community

Discussion on: Yet Another Perl Switch Statement

Collapse
 
jacoby profile image
Dave Jacoby

I was going to say that you can't get fall-through with /match/ && do {...}, but then I started thinking "When was the last time I wanted fall-through? That wasn't parlor-trick code?"

Collapse
 
mjgardner profile image
Mark Gardner

You get fall-through if you omit last.