CARVIEW |
Select Language
HTTP/2 200
server: nginx
content-type: text/plain;charset=UTF-8
content-encoding: gzip
content-security-policy: default-src 'self'; connect-src 'self' *.google-analytics.com; img-src 'self' data: www.google-analytics.com www.googletagmanager.com; script-src 'self' 'unsafe-inline' www.google-analytics.com www.googletagmanager.com; style-src 'self'; report-uri /csp-reports
accept-ranges: bytes
age: 0
date: Thu, 31 Jul 2025 12:01:31 GMT
via: 1.1 varnish
x-served-by: cache-bom-vanm7210068-BOM
x-cache: MISS
x-cache-hits: 0
x-timer: S1753963291.561949,VS0,VE816
vary: Accept-Encoding
strict-transport-security: max-age=31557600
content-length: 773
=over
=item last LABEL
X X
=item last EXPR
=item last
The C command is like the C statement in C
(as used in
loops); it immediately exits the loop in question. If the LABEL is
omitted, the command refers to the innermost enclosing
loop. The C form, available starting in Perl
5.18.0, allows a label name to be computed at run time,
and is otherwise identical to C. The
L|/continue BLOCK> block, if any, is not executed:
LINE: while () {
last LINE if /^$/; # exit when done with header
#...
}
C cannot return a value from a block that typically
returns a value, such as C, C, or C. It will perform
its flow control behavior, which precludes any return value. It should not be
used to exit a L|/grep BLOCK LIST> or L|/map BLOCK LIST>
operation.
Note that a block by itself is semantically identical to a loop
that executes once. Thus C can be used to effect
an early exit out of such a block.
See also L|/continue BLOCK> for an illustration of how
C, L|/next LABEL>, and
L|/redo LABEL> work.
Unlike most named operators, this has the same precedence as assignment.
It is also exempt from the looks-like-a-function rule, so
C will cause "bar" to be part of the argument to
C.
=back