in reply to Evaluate success or failure of a subroutine

Don't use exit() to leave a subroutine, it stops your program entirely. Instead, return a specific value, like 0, and set some global error variable if you want.
_____________________________________________________
Jeff japhy Pinyan, P.L., P.M., P.O.D, X.S.: Perl, regex, and perl hacker
How can we ever be the sold short or the cheated, we who for every service have long ago been overpaid? ~~ Meister Eckhart