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 πŸ‘‘


that's the whole page, bestie β€” signing off from the perl v5.42.0 era, dated 2026-07-15 πŸ’–πŸ«ΆπŸŽ€

πŸ“¦ where this page comes from