Any::URI::Escape(3pm)

πŸ“¦
version 0.01 Β· 6 versions
, in debian bookworm, debian trixie, ubuntu noble, ubuntu resolute, ubuntu stonking

✨ Any::URI::Escape πŸ’…

okay so bestie, this is Any::URI::Escape, and yes it's filed under section 3pm in the User Contributed Perl Documentation β€” very demure, very official. let's get into it 🫢


🌸 NAME 🌸

Any::URI::Escape β€” it loads URI::Escape::XS preferentially over URI::Escape. that's the whole vibe. no cap. πŸ‘‘


πŸŽ€ SYNOPSIS πŸŽ€

use Any::URI::Escape;
$escaped_url = uri_escape($url);

# URI::Escape::XS will be used instead of URI::Escape if it is installed.

like… that's it. that's the whole thing. you use it, you escape your url, and it handles the rest for you. slay ✨


πŸ’– DESCRIPTION πŸ’–

okay so real talk: URI::Escape is great. genuinely. iconic. we love her. πŸ’œ

but URI::Escape::XS is faster. ⚑

so this module does the smart thing: it loads URI::Escape::XS and imports the two most common methods if XS is installed. if it's not installed… it falls back to the other one. you don't have to think about it. it's giving "main character who handles her own logistics." πŸ¦‹

⚠️ ngl though β€” the insides of this module aren't completely shaken out yet, so patches welcome. fr fr. πŸ™ˆ

πŸ‘€ SEE ALSO πŸ‘€

  • URI::Escape
  • URI::Escape::XS

go read those too, iykyk πŸ“š


🫢 AUTHOR 🫢

Fred Moyer, <fred@redhotpenguin.com>


Copyright (C) 2010 by Fred Moyer

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.12.0 or, at your option, any later version of Perl 5 you may have available.

πŸ’€ yes bestie that's the real license text, i'm not paraphrasing legal. do not come for me.

and that's a wrap!! 🎬 this whole page is perl v5.34.0, dated 2022-06-06, and it lives at Any::URI::Escape(3pm). mwah πŸ’‹ go escape some uris, you got this πŸ’…βœ¨

πŸ“¦ where this page comes from