WWW::Shorten::Google - Perl interface to goo.gl
use WWW::Shorten::Google; use WWW::Shorten 'Google'; $short_url = makeashorterlink($long_url); $long_url = makealongerlink($short_url);
WWW::Shorten::Google is Perl interface to the web api goo.gl.
The function makeashorterlink will call the Google URL Shortener web site passing it your long URL and will return the shorter Google URL Shortener version.
makeashorterlink
The function makealongerlink does the reverse. makealongerlink will accept as an argument either the full Google URL Shortener URL or just the Google URL Shortener identifier.
makealongerlink
If anything goes wrong, then either function will return undef.
undef
Kazuhiro Osawa <yappo <at> shibuya <döt> pl>
sunnavy
WWW::Shorten, http://goo.gl/
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
1 POD Error
The following errors were encountered while parsing the POD:
Non-ASCII character seen before =encoding in '<döt>'. Assuming UTF-8
To install WWW::Shorten::Google, copy and paste the appropriate command in to your terminal.
cpanm
cpanm WWW::Shorten::Google
CPAN shell
perl -MCPAN -e shell install WWW::Shorten::Google
For more information on module installation, please visit the detailed CPAN module installation guide.