NAME
WWW::Shorten::ShadyURL - Perl interface to shadyurl.com
SYNOPSIS
use WWW::Shorten::ShadyURL;
use WWW::Shorten 'ShadyURL';
$shady_url = makeashorterlink( $long_url );
$orig_url = makealongerlink( $shady_url );
DESCRIPTION
A Perl interface to the web site shadyurl.com. ShadyURL simply maintains a database of long URLs, each of which has a unique identifier, that appears at first glance "shady", but resolves just like any other shortener service. However, the URLS may not be actually shorter, just sketchier.
Their motto is:
Don't just shorten your URL, make it suspicious and frightening.
FUNCTIONS
makeashorterlink( $url [, $shorten ] )
The function makeashorterlink
will connect to the ShadyURL web site and attempt to create an alias to the URL supplied.
Arguments:
$url - required. The URL you wish to shorten.
$shorten - optional. Set to a true value to actually create a short link.
The ShadyURL service creates links that appear sketchy, there is no guarantee that they will actually be shorter than the supplied URL. This attempts to make them shorter, but they will then appear less dubious.
makealongerlink( $shorturl )
The function makealongerlink
does the reverse. makealongerlink
will accept as an argument a full ShadyURL link.
If anything goes wrong, then either function will return undef
.
EXPORT
makeashorterlink, makealongerlink
SUPPORT, LICENCE, THANKS and SUCH
See the main WWW::Shorten docs.
Also note: I am not affiliated with shadyurl.com. If you have problems with their service, contact them.
AUTHOR
Jason McManus <infidel AT cpan.org>
Based on WWW::Shorten by Dave Cross <dave@dave.org.uk>