| line | stmt | bran | cond | sub | pod | time | code | 
| 1 |  |  |  |  |  |  | ###################################################################### | 
| 2 |  |  |  |  |  |  | package Net::Amazon::Request::Similar; | 
| 3 |  |  |  |  |  |  | ###################################################################### | 
| 4 | 1 |  |  | 1 |  | 671 | use warnings; | 
|  | 1 |  |  |  |  | 82 |  | 
|  | 1 |  |  |  |  | 34 |  | 
| 5 | 1 |  |  | 1 |  | 5 | use strict; | 
|  | 1 |  |  |  |  | 1 |  | 
|  | 1 |  |  |  |  | 33 |  | 
| 6 | 1 |  |  | 1 |  | 5 | use base qw(Net::Amazon::Request); | 
|  | 1 |  |  |  |  | 1 |  | 
|  | 1 |  |  |  |  | 220 |  | 
| 7 |  |  |  |  |  |  |  | 
| 8 |  |  |  |  |  |  | our $AMZN_XML_URL     = "http://xml.amazon.com/onca/xml3"; | 
| 9 |  |  |  |  |  |  |  | 
| 10 |  |  |  |  |  |  | ################################################## | 
| 11 |  |  |  |  |  |  | sub amzn_xml_url { | 
| 12 |  |  |  |  |  |  | ################################################## | 
| 13 | 0 |  |  | 0 | 0 | 0 | return $AMZN_XML_URL; | 
| 14 |  |  |  |  |  |  | } | 
| 15 |  |  |  |  |  |  |  | 
| 16 |  |  |  |  |  |  | ################################################## | 
| 17 |  |  |  |  |  |  | sub new { | 
| 18 |  |  |  |  |  |  | ################################################## | 
| 19 | 1 |  |  | 1 | 1 | 32 | my($class, %options) = @_; | 
| 20 |  |  |  |  |  |  |  | 
| 21 |  |  |  |  |  |  | # For backwards compatibility | 
| 22 | 1 |  |  |  |  | 11 | $class->_convert_option(\%options, 'asin', 'similar'); | 
| 23 |  |  |  |  |  |  |  | 
| 24 | 1 |  |  |  |  | 8 | $class->_assert_options_defined(\%options, 'similar'); | 
| 25 |  |  |  |  |  |  |  | 
| 26 | 1 |  |  |  |  | 5 | $class->_convert_option(\%options, | 
| 27 |  |  |  |  |  |  | 'similar', | 
| 28 |  |  |  |  |  |  | 'ItemId'); | 
| 29 |  |  |  |  |  |  |  | 
| 30 | 1 |  |  |  |  | 10 | my $self = $class->SUPER::new(%options); | 
| 31 |  |  |  |  |  |  |  | 
| 32 | 1 |  |  |  |  | 14 | bless $self, $class;   # reconsecrate | 
| 33 |  |  |  |  |  |  | } | 
| 34 |  |  |  |  |  |  |  | 
| 35 |  |  |  |  |  |  | 1; | 
| 36 |  |  |  |  |  |  |  | 
| 37 |  |  |  |  |  |  | __END__ |