Net::Am...ty::Book(3)
π Net::Am...ty::Book π
okay bestie, welcome to the Net::Am...ty::Book page (that's the Perl doc for Net::Amazon::Property::Book, iykyk β the abbreviation is just the vibes being cute in the header). It's a User Contributed Perl Documentation page, and it's literally just here to tell you everything about the book class for amazon.com. π
β¨ NAME β¨
Net::Amazon::Property::Book β it's the class for books on amazon.com. that's it, that's the whole name. periodt. π
πΈ SYNOPSIS πΈ
use Net::Amazon;
# ...
if($resp->is_success()) {
for my $prop ($resp->properties) {
print join("/", $prop->authors()), " ",
$prop->title(), " ",
$prop->publisher(), " ",
$prop->year(), "\n";
}
}
see how easy that is?? slay. π₯
π¦ DESCRIPTION π¦
Net::Amazon::Property::Book is derived from Net::Amazon::Property, and on top of all the all-purpose methods the base class already hands you, it also serves up specialized accessors just for book parameters. it's giving "inheritance but make it useful". π
π METHODS π
authors()β returns a list of the book's authors. there's also aauthor()method that just returns the first author, no cap. π«Άpublisher()β returns the book's publishing company as a string. πtitle()β returns the book's title as a string. the main character, honestly. πisbn()β returns the book's ISBN number. π’edition()β returns the book's edition. βean()β returns the book's EAN number. πnumpages()β returns the number of pages. yes, it counts. β¨dewey_decimal()β returns the Dewey decimal number, this is for non-fiction only.
β οΈ heads up bestie: this method is deprecated (2011-10-28) as it does not appear to be returned by Amazon any more. rip to a real one. π
publication_date()β returns the publication date. πΈReleaseDate()β returns the release date.
for historical reasons, this method used to return the publication date. however, as of version Net::Amazon 0.44 the release date is returned, and a separate publication_date() method is available. glow-up era fr fr. π¦
new(xmlref => $xmlref)β initializes an object by passing a hash of hashes structure containing the XML data returned from the service. usually, this is just used byNet::Amazoninternally to initialize objects for on backcoming data. it's giving behind-the-scenes intern energy. π
check out Net::Amazon::Property for all-purpose accessors, like year, OurPrice, ListPrice, etc. the base class really said "let me handle the basics, bestie". π
π AUTHOR π
Mike Schilli, <m@perlmeister.com>
π COPYRIGHT AND LICENSE π
Copyright 2003 by Mike Schilli <m@perlmeister.com>
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
and that's the whole page, bestie!! perl v5.42.0, dated 2025-07-25, straight from the User Contributed Perl Documentation files. go forth and query books, you icon. πβ¨ππ¦πΈπ π«Ά
π¦ where this page comes from
- fedora 43: perl-Net-Amazon 0.62-35.fc43 Β· GPL-1.0-or-later OR Artistic-1.0-Perl
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms