in reply to Re: Testing Complex Data Structures
in thread Testing Complex Data Structures
Results in the following for a single entry (note the [ and ], they're not present without forcearray):my$data = XMLin($url, forcearray => 1);
Thank you all!$data = { 'foo' => [{ 'one' => '1', 'two' => '2' }] };
Update: I've found that sometimes you also must specify which hash to force by specifying the keyattr.my$data = XMLin($url, keyattr => 'foo', forcearray => 1);
- Comment on Re: Re: Testing Complex Data Structures
- Select or Download Code