in reply to Re: YAML - Catch errors
in thread YAML - Catch errors

Indeed, a simple eval did the job :
eval { $config = LoadFile($fh); } or die "CANNOT EVAL\n";
Thanks for your help.