DOKK / manpages / debian 10 / libmojolicious-plugin-assetpack-perl / Mojolicious::Plugin::AssetPack::Util.3pm.en
Mojolicious::Plugin::AssetPack::Util(3pm) User Contributed Perl Documentation Mojolicious::Plugin::AssetPack::Util(3pm)

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

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

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

  $str = checksum $bytes;

Used to calculate checksum of $bytes.

  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.

  $str = dumper $any;

Dump a Perl data structure into a single line with Data::Dumper.

Same as "has" in Mojo::Base, but creates a read-only attribute.

  $module = load_module $module;

Used to load a $module. Will confess on failure.

Mojolicious::Plugin::AssetPack.

2018-09-17 perl v5.26.2