From: Jan Svitok Date: 2007-01-21T20:38:12+09:00 Subject: Re: YAML::Syck fault tolerance On 1/20/07, Phlip wrote: > Ruboids: > > I need to read a block of YAML and recover gracefully if it fails. The > current loader apparently throws away all the representation it loaded at > error time. > > Is there some way to get the representation loaded before the error > happens? Not tested idea: If the exception contains error position, try cutting the string just before the error and retry... (althoug this won't be a stable solution, it's more a hack)