The last command is like the break statement in C (as used in loops); ... loop. The last EXPR form, available starting in Perl 5.18.0, allows a label name to be ...
perldoc.perl.org