WWW::Dilbert - Retrieve Dilbert of the day comic strip images
use WWW::Dilbert qw(get_strip mirror_strip strip_url); # Get the URL for todays strip my $image_url = strip_url(); # Get todays strip my $image_blob = get_strip(); # Get a specific strip by specifying the ID my $ethical_garbage_man = get_strip("2666040051128"); # Write todays strip to local_filename.gif on disk my $filename_written = mirror_strip("local_filename.gif"); # Write a specific strip to mystrip.gif on disk my $filename_written = mirror_strip("mystrip.gif","2666040051128");
This module will download the latest Dilbert of the Day cartoon strip from the Dilbert website and return a binary blob of the image, or write it to disk.
$Id: Dilbert.pm,v 1.12 2005/12/29 21:41:59 nicolaw Exp $
Nicola Worthington <nicolaw@cpan.org>
http://perlgirl.org.uk
(c) Nicola Worthington 2004, 2005. This program is free software; you can redistribute it and/or modify it under the GNU GPL.
See the file COPYING in this distribution, or http://www.gnu.org/licenses/gpl.txt
To install WWW::Dilbert, copy and paste the appropriate command in to your terminal.
cpanm
cpanm WWW::Dilbert
CPAN shell
perl -MCPAN -e shell install WWW::Dilbert
For more information on module installation, please visit the detailed CPAN module installation guide.