hi perl monks!
I have a problem and i still didn't find out if it's a perl bug or a yaml module bug.
if i write a code like that:
$x->{data} = 1;
$x->{abc} = $x;
print YAML::Dump(
$x, $y );
The results will be:
---
- &1 # &1 shows us that we will meet a reference to this place.
data: 1
- abc: *1 # *1 represent the reference to the &1 ($x)
in one of my perl application i saw a yaml file that look like that:
---
Data: &1 &2
a: 1
b: 2
Trans:
- *1
- *2
which means that i have 2 different references to the same data.
the problem is that the YAML module can't read this
file and i get an error ( more then one anchor ) at the line that the "Data: &1 &2" present.
is there a way to crate tow different refs to the same data in an object?
i'll be happy if anyone here can give me a direction to start investigating this bug.
Thanks,
Eli Shabtay