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 the use strict; and use 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 πŸ‘‘

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. πŸ”₯

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 return undef. so like, check your return value, okay? don't be out here building your whole app on undef and then acting surprised. πŸ’€

πŸ’œ AUTHOR πŸ’œ

Michiel Beijen <michielb@cpan.org> 🫢


🌈 CONTRIBUTORS 🌈

  • Chase Whitener <capoeirab@cpan.org> ✨

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