method last
Documentation for method last assembled from the following types:
class Label
From Label
(Label) method last
Defined as:
method last(Label:)
Terminate the execution of the loop associated with the label.
MY-LABEL:
for 1..10 {
last MY-LABEL if $_ > 5;
print "$_ ";
}
# OUTPUT: «1 2 3 4 5 »