Just to note: you can throw an error object with die. You can throw anything with die.
eval { die new MyException("foo"); }; if (UNIVERSAL::isa($@, 'MyException') { print "Then my example worked!" }
Ted Young
($$<<$$=>$$<=>$$<=$$>>$$) always returns 1. :-)In reply to Re^3: Prototype "foo {...} bar {...}" is documented?
by TedYoung
in thread Prototype "foo {...} bar {...}" is documented?
by gmpassos
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |