in reply to Re: perl calls die() as a method
in thread perl calls die() as a method
Now to your remark. I override CORE::GLOBAL::die to FIX exceptions not break. My real die looks like this:
Now, all plain string die-s magically start to raise blessed objects (with a stringify op not to break something).sub die (@) { unless (ref $_[0]) { CORE::die My::Error->UnCaught(text => join('', @_)); } CORE::die $_[0]; }
|
|---|