logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

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

Author

       Iain Truskett <spoon@cpan.org>

Description

       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.

Functions

makeashorterlink
       The function "makeashorterlink" will call the <https://TinyURL.com> web site passing it your long URL and
       will return the shorter version.

   makealongerlink
       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".

   EXPORT
       makeashorterlink, makealongerlink

Name

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

See Also

       WWW::Shorten, <https://tinyurl.com/>

perl v5.36.0                                       2022-11-19                         WWW::Shorten::TinyURL(3pm)

Support, License, Thanks And Such

       See the main WWW::Shorten docs.

Synopsis

         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);

See Also