WWW::Shorten::Digg - Perl interface to digg.com
use WWW::Shorten::Digg; use WWW::Shorten 'Digg'; $short_url = makeashorterlink($long_url); $long_url = makealongerlink($short_url);
A Perl interface to the web site digg.com. Digg maintains a database of long URLs, each of which has a unique identifier.
The function makeashorterlink will call the Digg web site passing it your long URL and will return the shorter Digg version.
makeashorterlink
The function makealongerlink does the reverse. makealongerlink will accept as an argument either the full Digg URL or just the Digg identifier.
makealongerlink
If anything goes wrong, then either function will return undef.
undef
makeashorterlink, makealongerlink
See the main WWW::Shorten docs.
Martin Broerse <broerse@martinic.com>
WWW::Shorten, perl, http://apidoc.digg.com/ShortURLs
© Martinic 2009. This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
For more information on Martinic visit http://www.martinic.com/.
To install WWW::Shorten::Digg, copy and paste the appropriate command in to your terminal.
cpanm
cpanm WWW::Shorten::Digg
CPAN shell
perl -MCPAN -e shell install WWW::Shorten::Digg
For more information on module installation, please visit the detailed CPAN module installation guide.