1WWW::Shorten::TinyURL(3U)ser Contributed Perl DocumentatiWoWnW::Shorten::TinyURL(3)
2
3
4

NAME

6       WWW::Shorten::TinyURL - Perl interface to <http://tinyurl.com>
7

SYNOPSIS

9         use strict;
10         use warnings;
11
12         use WWW::Shorten::TinyURL;
13         use WWW::Shorten 'TinyURL';
14
15         my $short_url = makeashorterlink('http://www.foo.com/some/long/url');
16         my $long_url  = makealongerlink($short_url);
17

DESCRIPTION

19       A Perl interface to the web site <http://tinyurl.com>.  The service
20       simply maintains a database of long URLs, each of which has a unique
21       identifier.
22

Functions

24   makeashorterlink
25       The function "makeashorterlink" will call the <http://TinyURL.com> web
26       site passing it your long URL and will return the shorter version.
27
28   makealongerlink
29       The function "makealongerlink" does the reverse. "makealongerlink" will
30       accept as an argument either the full URL or just the identifier.
31
32       If anything goes wrong, then either function will return "undef".
33
34   EXPORT
35       makeashorterlink, makealongerlink
36

SUPPORT, LICENSE, THANKS and SUCH

38       See the main WWW::Shorten docs.
39

AUTHOR

41       Iain Truskett <spoon@cpan.org>
42

SEE ALSO

44       WWW::Shorten, <http://tinyurl.com/>
45
46
47
48perl v5.30.1                      2020-01-30          WWW::Shorten::TinyURL(3)
Impressum