Re: Proper way to halt a script

2007-07-06 Thread [EMAIL PROTECTED]
On Jul 6, 2:11 am, [EMAIL PROTECTED] (Joseph L. Casale) wrote: > I am reading perldoc.perl.org and am not understanding exit and die clearly. > > If I have a conditional in a sub that I want to validate with, what is the > correct > way to do the following: > > 1. End the sub and return back

Re: Proper way to halt a script

2007-07-06 Thread kapil.V
Chas Owens wrote: On 7/5/07, Joseph L. Casale <[EMAIL PROTECTED]> wrote: I am reading perldoc.perl.org and am not understanding exit and die clearly. If I have a conditional in a sub that I want to validate with, what is the correct way to do the following: 1. End the sub and return

Re: Proper way to halt a script

2007-07-06 Thread Paul Lalli
On Jul 5, 10:21 pm, [EMAIL PROTECTED] wrote: > > I am reading perldoc.perl.org and am not understanding exit > > and die clearly. > > > If I have a conditional in a sub that I want to validate with, > > what is the correct way to do the following: > > > 1. End the sub and return back to the script

Re: Proper way to halt a script

2007-07-06 Thread kapil.V
Chas Owens wrote: On 7/5/07, Joseph L. Casale <[EMAIL PROTECTED]> wrote: I am reading perldoc.perl.org and am not understanding exit and die clearly. If I have a conditional in a sub that I want to validate with, what is the correct way to do the following: 1. End the sub and return

Re: Proper way to halt a script

2007-07-06 Thread Chas Owens
On 7/6/07, kapil.V <[EMAIL PROTECTED]> wrote: snip > 2. can sort of be done*, you can exit a script with exit() (see > perldoc -f exit), die (see perldoc -f die), or croak (see perldoc > Carp). > > * At the end of script any END {} blocks that have been defined will > execute (in reverse order of

Re: Proper way to halt a script

2007-07-05 Thread rcook
>> I am reading perldoc.perl.org and am not understanding exit and die >> clearly. >> >> If I have a conditional in a sub that I want to validate with, what is >> the >> correct way to do the following: >> >> >> 1. End the sub and return back to the script without continuing >> that >> sub. >

Re: Proper way to halt a script

2007-07-05 Thread rcook
> I am reading perldoc.perl.org and am not understanding exit and die > clearly. > > If I have a conditional in a sub that I want to validate with, what is the > correct way to do the following: > > > 1. End the sub and return back to the script without continuing that > sub. if (condi

Re: Proper way to halt a script

2007-07-05 Thread Chas Owens
On 7/5/07, Joseph L. Casale <[EMAIL PROTECTED]> wrote: I am reading perldoc.perl.org and am not understanding exit and die clearly. If I have a conditional in a sub that I want to validate with, what is the correct way to do the following: 1. End the sub and return back to the script wi

Proper way to halt a script

2007-07-05 Thread Joseph L. Casale
I am reading perldoc.perl.org and am not understanding exit and die clearly. If I have a conditional in a sub that I want to validate with, what is the correct way to do the following: 1. End the sub and return back to the script without continuing that sub. 2. End the entire scrip