WWW::Shorten::VGd - shorten (or lengthen) URLs with http://v.gd
version 0.003
use WWW::Shorten::VGd; use WWW::Shorten 'VGd'; my $url = q{http://averylong.link/wow?thats=really&really=long}; my $short_url = makeashorterlink($url); my $long_url = makealongerlink($short_url); # eq $url
A Perl interface to the web site http://v.gd. v.gd simply maintains a database of long URLs, each of which has a unique identifier. By default, this URL shortening service will show you a preview page before redirecting you. This can be turned off by setting a cookie at http://v.gd/previews.php.
The function makeashorterlink will call the v.gd web site passing it your long URL and will return the shortened link.
makeashorterlink
The function makealongerlink does the reverse. makealongerlink will accept as an argument either the full TinyURL URL or just the TinyURL identifier.
makealongerlink
If anything goes wrong, then either function will return undef.
undef
The project homepage is http://p3rl.org/WWW::Shorten::VGd.
The latest version of this module is available from the Comprehensive Perl Archive Network (CPAN). Visit http://www.perl.com/CPAN/ to find a CPAN site near you, or see http://search.cpan.org/dist/WWW-Shorten-VGd/.
The development version lives at http://github.com/doherty/WWW-Shorten-VGd and may be cloned from git://github.com/doherty/WWW-Shorten-VGd.git. Instead of sending patches, please fork this project using the standard git and github infrastructure.
The development version is on github at http://github.com/doherty/WWW-Shorten-VGd and may be cloned from git://github.com/doherty/WWW-Shorten-VGd.git
No bugs have been reported.
Please report any bugs or feature requests through the web interface at https://github.com/doherty/WWW-Shorten-VGd/issues.
Mike Doherty <doherty@cpan.org>
This software is copyright (c) 2011 by Mike Doherty.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install WWW::Shorten::VGd, copy and paste the appropriate command in to your terminal.
cpanm
cpanm WWW::Shorten::VGd
CPAN shell
perl -MCPAN -e shell install WWW::Shorten::VGd
For more information on module installation, please visit the detailed CPAN module installation guide.