note
xdg
<p>You might want to be careful using Error. There can be some unexpected negative side-effects. Perrin's write up [id://278900] has the details. (I've written [cpan://Exception::Class::TryCatch] to bring some try/catch sugar to the [cpan://Exception::Class] module, and you might consider that in place of Error.)
</p>
<div class="pmsig"><div class="pmsig-268515">
<p>-xdg</p>
<p><small><i>Code written by xdg and posted on PerlMonks is <a href="http://creativecommons.org/licenses/publicdomain">public domain</a>. It is provided <b>as is</b> with no warranties, express or implied, of any kind. Posted code may not have been tested. Use of posted code is at your own risk.</i></small></p>
</div></div>
465989
466090