GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
WWW::Shorten::TinyURL(3) User Contributed Perl Documentation WWW::Shorten::TinyURL(3)

WWW::Shorten::TinyURL - Perl interface to <https://tinyurl.com>

  use strict;
  use warnings;

  use WWW::Shorten::TinyURL;
  use WWW::Shorten 'TinyURL';

  my $short_url = makeashorterlink('https://www.foo.com/some/long/url');
  my $long_url  = makealongerlink($short_url);

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

The function "makeashorterlink" will call the <https://TinyURL.com> web site passing it your long URL and will return the shorter version.
The function "makealongerlink" does the reverse. "makealongerlink" will accept as an argument either the full URL or just the identifier.

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

makeashorterlink, makealongerlink

See the main WWW::Shorten docs.

Iain Truskett <spoon@cpan.org>

WWW::Shorten, <https://tinyurl.com/>
2021-03-12 perl v5.32.1

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.