WWW::Shorten(3pm)
π WWW::Shorten β the vibe π
okay so bestie, welcome to WWW::Shorten, aka the User Contributed Perl Documentation glow-up for talking to URL shortening sites. it's giving "make my link cute and smol." β¨
πΈ NAME πΈ
WWW::Shorten β Interface to URL shortening sites. that's it, that's the whole name, no notes. π
π SYNOPSIS π
here's the whole flex, copy it exactly bestie, don't freestyle:
#!/usr/bin/env perl
use strict;
use warnings;
use WWW::Shorten 'TinyURL'; # Recommended
# use WWW::Shorten 'Bitly'; # or one of the others
# Individual modules have have their own syntactic variations.
# See the documentation for the particular module you intend to use for details
my $url = 'https://metacpan.org/pod/WWW::Shorten';
my $short_url = makeashorterlink($url);
my $long_url = makealongerlink($short_url);
# - OR -
# If you don't like the long function names:
use WWW::Shorten 'TinyURL', ':short';
my $short_url = short_link($url);
my $long_url = long_link( $short_url );
lowkey important: every individual module has its own syntactic variations, so likeβ¦ go read the docs for whichever one you're actually using, bestie. they do not all behave the same and i'm not gonna pretend they do. π
π¦ DESCRIPTION π¦
it's a Perl interface to a whole lil squad of services that shorten URLs. the way it works is these sites keep databases of long URLs, and each long URL gets its own unique identifier. so you hand over the long one, you get the smol one back. iconic behaviour honestly. π
π DEPRECATION NOTICE π
okay bestie, sit down, this part is sad. the following shorten services have been deprecated because their endpoints literally no longer exist or function. rip to them fr fr. π
WWW::Shorten::LinkToolbotWWW::Shorten::LinkzWWW::Shorten::MakeAShorterLinkWWW::Shorten::MetamarkWWW::Shorten::TinyClickWWW::Shorten::TinylinkWWW::Shorten::QurlWWW::Shorten::Qwer
and heads up: when version 3.100 is released, these deprecated services will not be part of the distribution. so likeβ¦ don't build your whole personality around them. π
π SHORTEN APP π
there's a super simple lil program called shorten that ships in the distribution's bin folder. you feed it a URL, it hands you back a shortened version. tiny program, big main character energy. π
π«Ά BUGS, REQUESTS, COMMENTS π«Ά
please submit any issues <https://github.com/p5-shorten/www-shorten/issues> if you've got them!! we appreciate all the help β suggestions, noted problems, and especially patches. like genuinely, patches are the love language here. π
- if you know of a shorten service that we don't already have, make your own service and release it as a separate module, like
WWW::Shorten::GooglorWWW::Shorten::Bitly. or alternatively, just let us know and we'll be happy to work it up for you. either way, slay. β¨
π AUTHOR π
Iain Truskett spoon@cpan.org
π CONTRIBUTORS π
these are the people who ate and left no crumbs:
- Alex Page -- for the original LWP hacking on which Dave based his code.
- Ask Bjoern Hansen -- providing
WWW::Shorten::Metamark - Chase Whitener
capoeirab@cpan.org - Dave Cross dave@perlhacks.com -- Authored
WWW::MakeAShorterLinkon which this was based - Eric Hammond -- writing
WWW::Shorten::NotLong - Jon and William (wjr) -- smlnk services
- Kazuhiro Osawa
yappo@cpan.org - Kevin Gilbertson (Gilby) -- TinyURL API information
- Martin Thurn -- bug fixes
- Matt Felsen (mattf) -- shorter function names
- Neil Bowers
neilb@cpan.org - PJ Goodwin -- code for
WWW::Shorten::OneShortLink - Shashank Tripathi
shank@shank.com-- for providingWWW::Shorten::SnipURL - Simon Batistoni -- giving the
makealongerlinkidea to Dave. - Everyone else we might have missed.
In 2004 Dave Cross took over the maintenance of this distribution following the death of Iain Truskett.
In 2016, Chase Whitener took over the maintenance of this distribution.
π LICENSE AND COPYRIGHT π
Copyright (c) 2002 by Iain Truskett.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
π SEE ALSO π
CGI::Shorten, WWW::Shorten::Simple
and that's the whole page bestie!! this lil time capsule was documented under perl v5.36.0, dated 2022-11-19, and yes it's still living rent free as WWW::Shorten(3pm). go shorten something cute. bye!! π
β¨π¦πΈ
π¦ where this page comes from
- debian bookworm: libwww-shorten-perl 3.094-2 Β· Artistic-2.0
- debian trixie: libwww-shorten-perl 3.094-2 Β· Artistic-2.0
- ubuntu noble: libwww-shorten-perl 3.094-2 Β· Artistic-2.0
- ubuntu resolute: libwww-shorten-perl 3.094-2 Β· Artistic-2.0
- ubuntu stonking: libwww-shorten-perl 3.094-2 Β· Artistic-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms