The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

WWW::Alltop::Topic - A Topic from Alltop.com

SYNOPSIS

  use WWW::Alltop::Topic;
  use WWW::Mechanize;

  my $t = WWW::Alltop::Topic->new(
    name => 'Tech',
    url  => 'http://tech.alltop.com/',
    mech => WWW::Mechanize->new,
  );

  # ArrayRef of WWW:Alltop::TopicListing
  my $listings =  $t->listings;
  foreach my $listing (@$listings) {
    ...
  }

DESCRIPTION

A topic representation from Alltop.com, used to fetch all listings for a given topic (a topic being a subdomain of alltop.com).

ATTRIBUTES

name

The name of the topic. For example, 'Tech'.

url

The url of the topic. For example, http://tech.alltop.com/.

mech

A WWW::Mechanize instance

METHODS

listings()

Fetches the listings (WWW::Alltop::TopicListing) for the topic, returning an ArrayRef of all the listings found.

SEE ALSO

WWW::Alltop