++ed by:
CHENRYN SRI ZOFFIX ADAMJS MHOWARD

24 PAUSE users
23 non-PAUSE users.

Author image Jan Henning Thorsen

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 $module. Echo back $module on success and returns empty string on failure. $@ holds the error message on failure.

SEE ALSO

Mojolicious::Plugin::AssetPack.