The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

Amazon::Site - A class to represent an Amazon site

SYNOPSIS

  use Amazon::Site;

  my $site = Amazon::Site->new(
    code     => 'UK',
    country  => 'United Kingdom',
    tldn     => 'co.uk',
    currency => 'GBP',
    sort     => 1,
  );

  print $site->tldn;   # co.uk
  print $site->domain; # amazon.co.uk

METHODS

new

Creates a new Amazon::Site object.

code

Returns the two-letter country code.

country

Returns the country name.

tldn

Returns the top-level domain name.

domain

Return the whole domain name.

currency

Returns the currency code.

sort

Returns the sort order.