Search Results

Search: Posts Made By: novera
1,243
Posted By novera
This is my code: my $results =...
This is my code:

my $results = $res->content;
$xml = new XML::Simple (KeyAttr => [],suppressempty => 1,ForceArray =>
['roomtype']);
$data = $xml->XMLin("$results");

foreach $e...
1,243
Posted By novera
XML::Simple Help!
I can loop through each roomtype but if a roomtype has more that one mealtype I get this error:
Not a HASH reference

The ForceArray option is enabled. Please Help!


This is the dump from the...
2,199
Posted By novera
Array split function & hashes
Hi,

If this is the array that is being returned to me:


How would I get the values for each of the 3 records?

This works for 1 Record:

foreach $item (@results)
{
($id, $id2, $name,...
Showing results 1 to 3 of 3

 
All times are GMT -4. The time now is 09:08 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy