Welcome to the Monastery | |
PerlMonks |
Re: AD User Exist?by VSarkiss (Monsignor) |
on Nov 30, 2004 at 21:55 UTC ( [id://411309]=note: print w/replies, xml ) | Need Help?? |
A typical way to handle that are try/catch blocks, which in Perl are implemented with eval (the block form). When you wrap the call in an eval, it will trap the die, and let you inspect the result. Something like this in your case:
You can read more about this in perlfunc, under eval.
In Section
Seekers of Perl Wisdom
|
|