Mojo::BaseUtil(3)
okay bestie, welcome to the Mojo::BaseUtil(3) page β the tiny utility closet that Mojo::Base and Mojo::Util both raid, and we're going through it together π
β¨
πΈ NAME πΈ
Mojo::BaseUtil β common utility functions used in Mojo::Base, re-exported in Mojo::Util π«Ά
π SYNOPSIS π
use Mojo::BaseUtil qw(class_to_path monkey_patch);
my $path = class_to_path 'Foo::Bar';
monkey_patch 'MyApp', foo => sub { say 'Foo!' };
π¦ DESCRIPTION π¦
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. That's the whole vibe: share the functions, dodge the circular dependency, no cap β¨
π SEE ALSO π
MojoliciousMojolicious::Guides<https://mojolicious.org>
that's the whole page, bestie β signing off from the perl v5.42.0 era, dated 2026-07-15 ππ«Άπ
π¦ where this page comes from
- opensuse-leap 16.0: perl-Mojolicious 9.480.0-bp160.2.1 Β· Artistic-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms