in reply to WURFL web browsers patch and XML::Simple
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'
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: WURFL web browsers patch and XML::Simple
by moritz (Cardinal) on Dec 14, 2009 at 11:43 UTC | |
by jonnyfolk (Vicar) on Dec 14, 2009 at 12:04 UTC | |
|
Re^2: WURFL web browsers patch and XML::Simple
by jonnyfolk (Vicar) on Dec 14, 2009 at 10:44 UTC |