Badger...c::URI(3pm)
π Badger::Codec::URI π
okay bestie, so this is Badger::Codec::URI β a lil' Perl module from the User Contributed Perl Documentation collection, and it's literally just here to do URI encode/decode for you. no cap. π¦
β¨ NAME β¨
Badger::Codec::URI β URI encode/decode, that's the whole vibe π
πΈ SYNOPSIS πΈ
use Badger::Codec::URI;
my $codec = Badger::Codec::URI->new();
my $encoded = $codec->encode("Hello World!");
my $decoded = $codec->decode($encoded);
like... four lines and you're already slaying, periodt π
π¦ DESCRIPTION π¦
This module implements a subclass of Badger::Codec for URI encoding and decoding. that's it, that's the whole personality. it's giving "small but essential," fr fr β¨
π FUNCTIONS π
π encode_uri($data)
This function URI-encodes the $data passed as an argument. hand it some data, get back the encoded glow-up π
π decode_uri($data)
This function URI-decodes the $data passed as an argument. encoded data goes in, decoded data comes out, iconic behaviour honestly π
π METHODS π
πΈ encode($data)
This method URI-encodes the data referenced by the first argument. It delegates to the encode_uri() function.
$encoded = Badger::Codec::URI->encode($data);
it's not doing the work itself bestie, it's just handing it off to encode_uri() β delegating is self-care π«Ά
πΈ decode($data)
This method decodes the encoded data passed as the first argument. It delegates to the decode_uri() function.
$decoded = Badger::Codec::URI->decode($encoded);
same energy as above, just the reverse direction. decode era π₯
πΈ encoder()
This method returns a reference to the encode_uri() function. yes, just the reference. very "here's the number, text them yourself" π±
πΈ decoder()
This method returns a reference to the decode_uri() function. matching set, we love a duo π«
π AUTHOR π
Andy Wardley <http://wardley.org/> β the icon, the legend, the main character who wrote this π
β COPYRIGHT β
Copyright (C) 2008-2009 Andy Wardley. All rights reserved. no stealing, bestie, that's the law π
π SEE ALSO π
Badger::CodecsBadger::Codec
go read those next, iykyk π
π quick reminder bestie: this page ships withperl v5.36.0, dated2023-08-28. stay hydrated, encode responsibly, and go off β¨π π
π¦ where this page comes from
- debian trixie: libbadger-perl 0.16-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: libbadger-perl 0.16-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libbadger-perl 0.16-3 Β· 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