in reply to YAML::XS, YAML::Syck and boolean values
Prints:my $val = $data->[1]->{active}; print Dumper $val;
Which I admit is hardly worth the space it took to quote... Worst case there is this:$VAR1 = 1;
Outputs:my $clean = [ map {{%$_}} @$data ]; print Dumper \$clean;
$VAR1 = \[ { 'name' => 'Bob Johnson', 'active' => 1, 'happy' => '' }, { 'name' => 'Bill Johnson', 'active' => 1, 'happy' => 1 }, { 'name' => 'Frank Johnson', 'active' => '', 'happy' => '' }, { 'name' => 'George Johnson', 'active' => '', 'happy' => 1 } ];
|
|---|