in reply to Error trapping

Check into the Fatal module, included with the distribution, which overloads most of the normal built ins so that they throw trappable errors instead of simply returning false.

-- Randal L. Schwartz, Perl hacker