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' };
In reply to Hash of Hashes by ewhitt
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |