Subject: | Problem loading example from YAML web site |
YAML::Syck imports the given example, but the resultant structure is blessed in the class 'clarkevans.com,2002:invoice>' which I don't think is correct.
Also, upon termination, a message 'Attempt to free unreferenced scalar: SV 0x80ceafc' is given, possibly indicating other problems.
% perl -MYAML::Syck -MData::Dumper -e 'print Dumper(YAML::Syc
k::Load(join("",<>)))' ex-2.27-invoice
$VAR1 = bless( {
'ship-to' => {
'given' => 'Chris',
'address' => {
'city' => 'Royal Oak',
'postal' => '48046',
'lines' => '458 Walkman Dr.
Suite #292
',
'state' => 'MI'
},
'family' => 'Dumars'
},
'bill-to' => $VAR1->{'ship-to'},
'date' => '2001-01-23',
'tax' => '251.42',
'comments' => 'Late afternoon is best. Backup contact is Nancy Billsmer @ 338-4338.',
'total' => '4443.52',
'invoice' => '34843',
'product' => [
{
'sku' => 'BL394D',
'quantity' => '4',
'price' => '450.00',
'description' => 'Basketball'
},
{
'sku' => 'BL4438H',
'quantity' => '1',
'price' => '2392.00',
'description' => 'Super Hoop'
}
]
}, 'clarkevans.com,2002:invoice>' );
Attempt to free unreferenced scalar: SV 0x8e56b04, <> line 29.
Message body not shown because it is not plain text.