As I suspected, you have one label and refer to it twice:
use YAML; my $x = { Data => { a => 1, b => 2 } }; $x->{Trans} = [ $x->{Data}, $x->{Data} ]; print Dump( $x ); __END__ --- Data: &1 a: 1 b: 2 Trans: - *1 - *1
In reply to Re: hash ref and yaml
by kyle
in thread hash ref and yaml
by shabtay
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |