Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • BackTrack 5 R2
  • Wine 1.4 / 1.5.5
  • Mozilla Firefox 12...
  • Ubuntu 11.04
  • Angry Birds 1.1.2.1
  • Ubuntu 10.04.4 LTS
  • Linux Kernel 3.4
  • Ubuntu Manual 10.10
  • Adobe Flash Player...
  • Pidgin 2.10.4
  • Home > Linux > Programming > Perl Modules

    WWW::xkcd 0.005

    Download button

    No screenshots available
    Downloads: 82  Tell us about an update
    User Rating:
    Rated by:
    NOT RATED
    0 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Sawyer X | More programs
    Perl Artistic License / FREE
    April 22nd, 2012, 00:36 GMT
    ROOT / Programming / Perl Modules

     Read user reviews (0)  Refer to a friend  Subscribe

    WWW::xkcd description

    Synchronous and asynchronous interfaces to xkcd comics

    WWW::xkcd is a Perl module that allows you to access xkcd comics using the official API in synchronous mode (what people are used to) or in asynchronous mode.

    The asynchronous mode requires you have AnyEvent and AnyEvent::HTTP available. However, since it's just supported and not crucial, it is not declared as a prerequisite.

    Currently it retrieves the metadata of each comic, but it will probalby also fetch the actual comic in the next release.

    This module still hasn't materialized so some things might change, but probably not a lot, if at all.

    SYNOPSIS

     use WWW::xkcd;
     my $xkcd = WWW::xkcd->new;
     my $comic = $xkcd->fetch; # provides latest data
     say "Today's comic is titled: ", $comic->{'title'};

     # or in async mode
     $xkcd->fetch( sub {
     my $comic = shift;
     say "Today's comic is titled: ", $comic->{'title'};
     } );



    Product's homepage

    Requirements:

    · Perl

      


    TAGS:

    xkcd comics | Perl interface | Perl | xkcd | comics



    HTML code for linking to this page:


    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM