The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

WWW::Shorten::5gp - Perl interface to 5.gp - those are some short URLs!

SYNOPSIS

  use WWW::Shorten '5gp';

  $short_url = makeashorterlink($long_url);
  $long_url  = makealongerlink($short_url);

DESCRIPTION

A Perl interface to the web site 5.gp. 5gp simply maintains a database of long URLs, each of which has a unique identifier.

5.gp has the benefit of being pretty reliable (so far) as well as having a really tiny domain name. The domain name makes tinyurl.com seem to be not so tiny at all!

Functions

The function makeashorterlink will call the 5gp web site passing it your long URL and will return the shorter 5gp version.

The function makealongerlink does the reverse. makealongerlink will accept as an argument either the full 5gp URL or just the 5gp identifier.

If anything goes wrong, then either function will return undef.

EXPORT

makeashorterlink, makealongerlink

SUPPORT, THANKS and SUCH

See the main WWW::Shorten docs.

LICENSE

This software is copyright (c) 2015 by Michiel Beijen.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.

REPOSITORY

https://github.com/mbeijen/WWW-Shorten-5gp

AUTHOR

Michiel Beijen <michiel.beijen@gmail.com>

I am not affiliated with 5.gp - I just like short domains!

SEE ALSO

WWW::Shorten, perl, http://5.gp/