in reply to Re: Re: Perl dbi disconnect question...
in thread Perl dbi disconnect question...
I think you should refactor so that you handle errors with one functions and success with another. Reserve exit(0) for leaving with your utility having done everything your user should expect. You may want to give exit different values to represent differeent errors. 0+$! is a good value if the reason is an error that sets $!. Or you could call die $!, instead.
After Compline,
Zaxo
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Re: Perl dbi disconnect question...
by kiat (Vicar) on Jan 05, 2004 at 01:47 UTC |