RE: Calling Exit from within a subroutine

2010-07-21 Thread Mimi Cafe
Cool, I have changed my program to exit at the end of the main program code. Thanks => -Original Message- => From: Robert Wohlfarth [mailto:rbwohlfa...@gmail.com] => Sent: 21 July 2010 13:14 => To: Perl Beginners => Subject: Re: Calling Exit from within a subroutine =&g

Re: Calling Exit from within a subroutine

2010-07-21 Thread Chas. Owens
On Wed, Jul 21, 2010 at 07:18, Mimi Cafe wrote: > Hi Rob > > I take care of everything that needs (execution errors) to be done within my > sub. Perhaps this may help explain what I have: > > A the beginning of my program I test to see what needs to be done, and if a > conditional evaluates to t

Re: Calling Exit from within a subroutine

2010-07-21 Thread Robert Wohlfarth
On Wed, Jul 21, 2010 at 6:18 AM, Mimi Cafe wrote: > If my program will continue to evaluate the rest of the program, then is it > efficient to call exit one time at the end of the program or call exit as > the last line of each subroutine to ensure the program ends there? > "Efficient" doesn't o

RE: Calling Exit from within a subroutine

2010-07-21 Thread Mimi Cafe
Hi Rob I take care of everything that needs (execution errors) to be done within my sub. Perhaps this may help explain what I have: A the beginning of my program I test to see what needs to be done, and if a conditional evaluates to true, then a sub is called to work and that is it. The progra

Re: Calling Exit from within a subroutine

2010-07-21 Thread Rob Coops
On Wed, Jul 21, 2010 at 5:00 AM, Babale Fongo wrote: > I call several subroutines within my program. The program is design in a > way that I don't expect my subroutines to return to the caller but to exit > once they have executed. > > At the moment I don't have exit or return at the end of my s