"be consistent" | |
PerlMonks |
Re: how do i trap the error generated by perlby arturo (Vicar) |
on Jun 08, 2001 at 01:25 UTC ( [id://86760]=note: print w/replies, xml ) | Need Help?? |
Using eval {}; and $@ (which, if set, contains the error message that would otherwise be fatal -- see perldoc perlvar) will allow you to catch most errors:
In Section
Seekers of Perl Wisdom
|
|