• # Désolé, mais...

    Posté par . En réponse au message 2 actions dans un "die". Évalué à 2.

    ... RTFM !

    $ 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.