in reply to Re^5: YAML problem
in thread YAML problem

Generally, I've reduce script as much as possible to remove other non-relevant bits of code. But now the problem was solved by switching from YAML::Syck to YAML::Dumper library.