Retourner au contenu associé (entrée de forum : 2 actions dans un "die")
Posté par jigso le 19 juillet 2006 à 11:59. En réponse au message 2 actions dans un "die". Évalué à 2.
AltStyle によって変換されたページ (->オリジナル) / アドレス: モード: デフォルト 音声ブラウザ ルビ付き 配色反転 文字拡大 モバイル
# Désolé, mais...
Posté par jigso . En réponse au message 2 actions dans un "die". Évalué à 2.
$ perldoc -f die
die LIST
Outside an "eval", prints the value of LIST to "STDERR" and exits with the current value of $! (errno).
$ perldoc -f return
return EXPR
return Returns from a subroutine, "eval", or "do FILE" with the value given in EXPR.
Donc forcément quand l'un est executé, l'autre ne peut pas l'être. En inversement.