Subject: | YAML::Loader bug when anchor+marshalling on the same line |
Hi,
I think I've found a bug in YAML::Loader. It occurs when you use an anchor and
marshalling on the same line. In that case, the marshalling is done twice, with
the output of the first call being the input to the second call, leading to
unwanted effects.
The attached patch has a test program and a proposed (naive) fix; run the new
test program without the patch to see the unwanted effects.
I'm sorry the test program doesn't use Test::Base like the other existing test
programs, but I haven't really used Test::Base, and the kind of marshalling I'm
doing in the new test program doesn't work both ways either (so no roundtrip
testing).
I've attached a patch against 0.70.
Please let me know what you think about this issue.
Thank you,
Marcel
P.S. I just noted that this seems related, or the same, as #52421; I still created the ticket as it
might be different, and because I have a patch.
Subject: | patch |
Message body not shown because it is not plain text.