#!/usr/bin/perl
###########################################
# Mike Schilli, 2003 ([email protected])
# Fetch book info from Amazon by ASIN
###########################################
use warnings;
use strict;
use Net::Amazon;
use Net::Amazon::Request::ASIN;

my $asin = "0132396556";

my $ua = Net::Amazon->new(
   token => 'XXXXXXXXXXXXXXX',
);

my $req = Net::Amazon::Request::ASIN->new(
   asin  => $asin,
);

my $resp = $ua->request($req);

if($resp->is_success()) {
   print $resp->as_string(), "\n";
} else {
   print "Error: ",
         $resp->message(), "\n";
}