in reply to Can I catch exceptions

try a combination of eval and die for that. ex:

eval { if .... { die 'Error Message 1'; else { die 'Error Message 2'; } };
then you check the value of $@ to get the 'death' message, and do your deed.


He who asks will be a fool for five minutes, but he who doesn't ask will remain a fool for life.

Chady | http://chady.net/