in reply to YAML - Catch errors

See eval, Try::Tiny, or some other exception handler for this.

--MidLifeXis

Replies are listed 'Best First'.
Re^2: YAML - Catch errors
by ice94 (Novice) on May 27, 2014 at 14:42 UTC
    Indeed, a simple eval did the job :
    eval { $config = LoadFile($fh); } or die "CANNOT EVAL\n";
    Thanks for your help.