From: "Singh, Ajit p" <[EMAIL PROTECTED]>
> I have a eval block and some if conditions within it and I would like
> to exit the eval block. i.e

perldoc -f return

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

            (Note that in the absence of an explicit "return", a 
subroutine,
            eval, or do FILE will automatically return the value of 
the last
            expression evaluated.)

Jenda
===== [EMAIL PROTECTED] === http://Jenda.Krynicky.cz =====
When it comes to wine, women and song, wizards are allowed 
to get drunk and croon as much as they like.
        -- Terry Pratchett in Sourcery


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to