Poet::Util::Web(3pm)
β¨ Poet::Util::Web β¨
okay bestie, gather round π this is the manual page for Poet::Util::Web, section 3pm of the Perl docs, and it's genuinely just a lil grab-bag of web-flavored helpers. no cap. it's giving "utility drawer in the kitchen that actually slaps." π«Ά
πΈ NAME πΈ
Poet::Util::Web β web-related utilities. that's the whole vibe. web stuff. helpers. for you. π
π SYNOPSIS π
here's how you pull these lil guys in, depending on where you're standing:
# In a script...
use Poet::Script qw(:web);
# In a module...
use Poet qw(:web);
# Automatically available in Mason components
so like β in a script? grab :web off Poet::Script. in a module? grab :web off Poet. and if you're living your best life inside a Mason component? they're just there. automatically. no import needed. main character energy fr fr π
π DESCRIPTION π
this whole group of utilities includes the following lil icons, and yes we're going through all of them because every single one matters:
html_escape ($str)β returns$strwith HTML entities escaped/unescaped. both directions, she does both, she's versatile like that β¨uri_escape ($str),uri_unescape ($str)β returns$strURI escaped/unescaped. this one comes straight fromURI::Escape, so you know it's legit. πjs_escape ($str)β returns$strescaped for Javascript. borrowed fromJavaScript::Value::Escape, so it's a lil collab, we love a crossover πmake_uri ($path, $args)β creates a URL by combining$pathwith a query string formed from the hashref$args. like, it just builds it for you. obsessed. for example:
make_uri("/foo/bar", { a => 5, b => 6 });
==> /foo/bar?a=5&b=6
see?? $path goes in, hashref goes in, cute little query string comes out the other side. a => 5 and b => 6 become ?a=5&b=6 and honestly? that's the whole trick. iconic. π₯
π¦ SEE ALSO π¦
Poetβ yeah, the parent vibe. go look at her. π
π AUTHOR π
Jonathan Swartz <swartz@pobox.com> β credit where credit is due, bestie, this legend wrote it π«Ά
π COPYRIGHT AND LICENSE π
this software is copyright (c) 2012 by Jonathan Swartz.
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 forth, remix, redistribute, it's all above board π
no cap, that's genuinely the entire page. every option, every function, every path. nothing skipped. periodt. π
and that's a wrap on this one, babe β this page comes to you from perl v5.34.0, dated 2022-06-18, and it's the Poet::Util::Web(3pm) man page. mwah. slay responsibly. ππ§
π¦ where this page comes from
- debian bookworm: libpoet-perl 0.16-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- debian trixie: libpoet-perl 0.16-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: libpoet-perl 0.16-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libpoet-perl 0.16-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libpoet-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