Mojolicious::Plugin::AssetPack::Util3pm
Utility functions for pipes
Usage
use Mojolicious::Plugin::AssetPack::Util;use Mojolicious::Plugin::AssetPack::Util qw(checksum diag DEBUG)
Overview
Mojolicious::Plugin::AssetPack::Util holds utility functions.
Functions
checksum
$str = checksum $bytes;
Used to calculate checksum of $bytes.
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.
dumper
$str = dumper $any;
Dump a Perl data structure into a single line with Data::Dumper.
has_ro
Same as "has" in Mojo::Base, but creates a read-only attribute.
load_module
$module = load_module $module;
Used to load a $module. Will confess on failure.
Releases
5 releases since Debian 9 (Stretch); the text changed 4 times.