Perl5 リファレンス

Perlプログラムの制御フローに関するキーワード

関数名概要
caller Returns the context of the current subroutine call.
continue Actually a flow control statement rather than a function.
die 指定されたリストの値を STDER に出力し、終了する。
dump 即座にコアダンプする。
eval In the first form, the return value of EXPR is parsed and executed as if it were a little Perl program.
exit Evaluates EXPR and exits immediately with that value.
goto The `goto-LABEL' form finds the statement labeled with LABEL and resumes execution there.
last The `last' command is like the `break' statement in C (as used in loops); it immediately exits the loop in question.
next The `next' command is like the `continue' statement in C; it starts the next iteration of the loop:
redo The `redo' command restarts the loop block without evaluating the conditional again.
return Returns from a subroutine, `eval', or `do FILE' with the value given in EXPR.
sub This is subroutine definition, not a real function per se.
wantarray Returns true if the context of the currently executing subroutine is looking for a list value.
[Perl5リファレンストップに戻る]