Cari di Perl 
    Perl User Manual
Daftar Isi
(Sebelumnya) Start this loop iteration over ...Declare a subroutine, possibly ... (Berikutnya)
Keywords related to control flow of your perl program

Get out of a function early

Daftar Isi

  • return EXPR

  • return

    Returns from a subroutine, eval, or do FILE with the valuegiven in EXPR. Evaluation of EXPR may be in list, scalar, or voidcontext, depending on how the return value will be used, and the contextmay vary from one execution to the next (see wantarray). If no EXPRis given, returns an empty list in list context, the undefined value inscalar context, and (of course) nothing at all in void context.

    (In the absence of an explicit return, a subroutine, eval,or do FILE automatically returns the value of the last expressionevaluated.)

 
Source : perldoc.perl.org - Official documentation for the Perl programming language
Site maintained by Jon Allen (JJ)     See the project page for more details
Documentation maintained by the Perl 5 Porters
(Sebelumnya) Start this loop iteration over ...Declare a subroutine, possibly ... (Berikutnya)