WWW::S...en::5gp(3pm)
π WWW::S...en::5gp(3pm) π
okay bestie, welcome to the User Contributed Perl Documentation for WWW::Shorten::5gp β she's a 3pm page, she's iconic, and she's about to make your long URLs cute and tiny. let's GO π
β¨ NAME β¨
WWW::Shorten::5gp β shorten URLs using <http://5.gp> π
πΈ SYNOPSIS πΈ
no thoughts, just vibes, and also this exact code:
use strict;
use warnings;
use WWW::Shorten::5gp;
# use WWW::Shorten '5gp'; # or, this way
my $short_url = makeashorterlink('http://www.foo.com/some/long/url');
my $long_url = makealongerlink($short_url);
ngl theuse strict;anduse warnings;are giving responsible queen energy. do not skip them. β¨
π¦ DESCRIPTION π¦
so basically this is a Perl interface to the web site <http://5.gp>. that's the whole concept. the service just keeps a database of long URLs, and every single one of them gets its own unique identifier. like a lil name tag for your link. obsessed. π
π FUNCTIONS π
π makeashorterlink
the function makeashorterlink will call the <http://5gp> web site, hand it your long URL, and return the shorter version back to you. it's giving glow-up. it's giving transformation arc. your URL walked in long and walked out snatched. π₯
π makealongerlink
the function makealongerlink does the reverse, bestie. makealongerlink will accept as an argument either the full URL or just the identifier β your choice, no pressure, main character freedom. π
β οΈ if anything goes wrong, then either function will returnundef. so like, check your return value, okay? don't be out here building your whole app onundefand then acting surprised. π
π AUTHOR π
Michiel Beijen <michielb@cpan.org> π«Ά
π CONTRIBUTORS π
- Chase Whitener <capoeirab@cpan.org> β¨
π LICENSE AND COPYRIGHT π
Copyright (c) 2015 by Michiel Beijen <michielb@cpan.org>.
this is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. so like, go off, remix it, slay, just keep it free fr fr. π§
and that's the whole page, bestie!! π this was perl v5.32.0, dated 2021-01-08, and it lives at WWW::S...en::5gp(3pm) β she's old, she's iconic, she still works, periodt. bye bye!! πβ¨
π¦ where this page comes from
- debian bookworm: libwww-shorten-5gp-perl 1.030-1.1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- debian trixie: libwww-shorten-5gp-perl 1.030-1.1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu jammy: libwww-shorten-5gp-perl 1.030-1.1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: libwww-shorten-5gp-perl 1.030-1.1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libwww-shorten-5gp-perl 1.030-1.1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libwww-shorten-5gp-perl 1.030-1.1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms