Mojolic...k::Util(3)

okay bestie, you're looking at the Mojolic...k::Util(3) page from the User Contributed Perl Documentation โœจ โ€” aka Mojolicious::Plugin::AssetPack::Util, and yes, we're getting into it ๐Ÿ’…

๐Ÿ’– NAME ๐Ÿ’–

Mojolicious::Plugin::AssetPack::Util - Utility functions for pipes. periodt.

โœจ DESCRIPTION โœจ

Mojolicious::Plugin::AssetPack::Util holds utility functions. That's the whole description, bestie โ€” short and iconic.

๐Ÿฆ‹ SYNOPSIS ๐Ÿฆ‹

Import it like this, no cap:

use Mojolicious::Plugin::AssetPack::Util;
use Mojolicious::Plugin::AssetPack::Util qw(checksum diag DEBUG)

๐Ÿ› ๏ธ FUNCTIONS ๐Ÿ› ๏ธ

These are the little helpers in the group chat ๐Ÿซถ

checksum ๐Ÿงฎ

$str = checksum $bytes;

Used to calculate checksum of $bytes. It's giving checksum queen ๐Ÿ’ซ

diag ๐Ÿ“ฃ

diag "some messsage";
diag "some %s", "messsage";

Same as warn(), but with a prefix. It will also use sprintf() if more than one argument is given. So it's warn's louder, slightly more decorated cousin.

dumper ๐Ÿ“ฆ

$str = dumper $any;

Dump a Perl data structure into a single line with Data::Dumper. One line, cute and contained.

has_ro ๐Ÿ”’

Same as has in Mojo::Base, but creates a read-only attribute. Read-only means no touchy, bestie.

load_module ๐Ÿงš

$module = load_module $module;

Used to load a $module. Will confess on failure. Dramatic? Maybe. Useful? Absolutely.

๐ŸŒˆ SEE ALSO ๐ŸŒˆ

Mojolicious::Plugin::AssetPack. Go say hi to the main character.


okay that's the whole page, bestie ๐Ÿ’– โ€” footer energy: this Mojolic...k::Util(3) page comes from source/version perl v5.42.0, dated 2024-12-12. Bye! ๐Ÿ’…

๐Ÿ“ฆ where this page comes from