ewhitt has asked for the wisdom of the Perl Monks concerning the following question:
Data Dumper outputsuse Net::Amazon; my $ua = Net::Amazon->new(token => 'xxxxxxxxxxxxxxxxxxxx', locale => ' +us'); my $response = $ua->search(browsenode=>"3839", mode=>"books", keywords +=>"perl"); if ($response->is_success()) { for my $prop ($response->properties) { $books{$prop->publication_date()}{'title'} = $prop->t +itle(); $books{$prop->publication_date()}{'authors'} = join(", ",$p +rop->authors()); $books{$prop->publication_date()}{'isbn'} = $prop->isbn( +); $books{$prop->publication_date()}{'pages'} = $prop->numpa +ges(); $books{$prop->publication_date()}{'publisher'} = $prop->publi +sher(); $books{$prop->publication_date()}{'image_small'} = $prop->Image +UrlSmall(); $books{$prop->publication_date()}{'image_medium'} = $prop->Image +UrlMedium(); } print Dumper %books; }
I expected $VAR2's content to be under $VAR1? On a side note, does anyone know why there is a "\" in "O'Reilly" in the publisher key?$VAR1 = '2005-07-12'; $VAR2 = { 'image_medium' => 'http://ecx.images-amazon.com/images/I/21m +kODqYmdL.jpg', 'authors' => 'Damian Conway', 'title' => 'Perl Best Practices', 'isbn' => '0596001738', 'publisher' => 'O\'Reilly Media, Inc.', 'image_small' => 'http://ecx.images-amazon.com/images/I/11Ol +nA6slCL.jpg', 'pages' => '542' };
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Hash of Hashes
by FunkyMonk (Bishop) on Mar 09, 2008 at 09:52 UTC | |
|
Re: Hash of Hashes
by Corion (Patriarch) on Mar 09, 2008 at 09:53 UTC | |
by ewhitt (Scribe) on Mar 09, 2008 at 10:23 UTC | |
by olus (Curate) on Mar 09, 2008 at 11:22 UTC | |
by Cody Pendant (Prior) on Mar 10, 2008 at 02:01 UTC | |
|
Re: Hash of Hashes
by bingos (Vicar) on Mar 09, 2008 at 09:54 UTC |