Scroll to navigation

Mojolicious::Plugin::AssetPack::Util(3pm) User Contributed Perl Documentation Mojolicious::Plugin::AssetPack::Util(3pm)

NAME

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

DESCRIPTION

Mojolicious::Plugin::AssetPack::Util holds utility functions.

SYNOPSIS

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

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.

SEE ALSO

Mojolicious::Plugin::AssetPack.

2024-12-07 perl v5.40.0