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

I find no documentation in YAML::Syck how the library behaves in the case that DumpFile cannot write the file, for example due to missing permissions etc. . It may likely be that the new output is not written because the permissions between web server user are not sufficient.

Replies are listed 'Best First'.
Re^4: YAML problem
by Anonymous Monk on May 26, 2015 at 14:38 UTC
    Once again. Even screen output loose data.

      Have you tried removing YAML from the problem?

      If your program fails to work with or without YAML, maybe YAML is not part of the problem at all?

        Yes, without YAML - everything is perfect and only in YAML file the data are corrupted. But the problem was solved now by using another YAML library. So the YAML::Syck produce an error, and YAML::Dumper works perfectly.
Re^4: YAML problem
by luxs (Beadle) on May 26, 2015 at 21:59 UTC
    Sorry for previous anonymous replies. The problem is in the YAML, because the content of variables can be printed on the screen, or dumped by other tools like Dump or write directly to the file without any problems. But the content of variables passed from one script to another not working with YAML, which is a very strange, like these variables start to have some kind of bad flag or mark.

      Your post above only shows one script and does not show any "passing around" of YAML. Maybe you can take a step back and explain the problem you're seeing, together with the exact situation where you see the problem, possibly with code to reproduce everything?

        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.