> 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 (condition){last} gets you out of that loop > 2. End the entire script without *any* further execution. if (condition){exit()} although you might want to look at 'die' as well, depends on what you are doing Owen -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/