in reply to Passing hash and hashref to sub

While we're discussing references, and since no one explicitly mentioned this, also pass references to Dumper:
print Dumper(\%amazonResults);

For more information on references, read the free manual: perlref