WWW::Shorten::SapoPuny - Perl interface to xsl.pt
use WWW::Shorten::SapoPuny; use WWW::Shorten 'SapoPuny'; $short_url = makeashorterlink($long_url); $long_url = makealongerlink($short_url);
A Perl interface to the web site xsl.pt. SapoPuny simply maintains a database of long URLs, each of which has a unique identifier.
The function makeashorterlink will call the SapoPuny web site passing it your long URL and will return the shorter SapoPuny version.
makeashorterlink
The function makealongerlink does the reverse. makealongerlink will accept as an ONLY the full SapoPuny URL.
makealongerlink
If anything goes wrong, then either function will return undef.
undef
makeashorterlink, makealongerlink
Copyright 2015 Alberto Simões, all rights reserved.
This module is free software and is published under the same terms as Perl itself.
Alberto Simões <ambs@cpan.org>
<ambs@cpan.org>
WWW::Shorten, perl, http://xsl.pt/
To install WWW::Shorten::SapoPuny, copy and paste the appropriate command in to your terminal.
cpanm
cpanm WWW::Shorten::SapoPuny
CPAN shell
perl -MCPAN -e shell install WWW::Shorten::SapoPuny
For more information on module installation, please visit the detailed CPAN module installation guide.