Mojo::BaseUtil(3pm)

Mojo::BaseUtil3pm

Common utility functions used in mojo::base, re-exported in mojo::util

Usage

  use Mojo::BaseUtil qw(class_to_patch monkey_path);
  my $path = class_to_path 'Foo::Bar';
  monkey_patch 'MyApp', foo => sub { say 'Foo!' };

Overview

Mojo::BaseUtil provides functions to both Mojo::Base and Mojo::Util, so that "Mojo::Base" does not have to load the rest of Mojo::Util, while preventing a circular dependency.

From libmojolicious-perl 9.39+dfsg-1 in Debian 13 (Trixie). Parsed by carta from the page's man source.