in reply to hash ref and yaml
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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: hash ref and yaml
by shabtay (Initiate) on Feb 17, 2009 at 12:47 UTC | |
by kyle (Abbot) on Feb 17, 2009 at 14:00 UTC |