Hi all,

I am looking for a graceful way to exit a test should one of my subtests
fail. I don't think that I want to skip the test; I'd prefer to report an
error and discontinue processing so that I don't try to add/delete bogus
data into my database. However, I'm open to persusasion <g>.

I checked the docs at perl.apache.org but didn't find any helper
routines or examples that fit my needs. The only thing I can image doing
is adding a die statement after my test:

 die "Unable to read \$userdata." unless defined $userdata && ref $userdata eq 
'HASH';

Any other thoughts?


Thanks,
William

-- 
Knowmad Services Inc.
http://www.knowmad.com

Reply via email to