foreach my $browser ( values %{$data->{devices}->{device}} ) { push @agents, $browser->{user_agent}; }
I collected the info into an array, but naturally instead of the push you could just put the print statement as in your example
UPDATE: After Moritz got through my thick brain on the second try I finally saw the error of my ways and added 'values'
In reply to Re: WURFL web browsers patch and XML::Simple
by jethro
in thread WURFL web browsers patch and XML::Simple
by jonnyfolk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |