See eval, Try::Tiny, or some other exception handler for this.
--MidLifeXis
In reply to Re: YAML - Catch errors by MidLifeXis in thread YAML - Catch errors by ice94