table of contents
other versions
- trixie 9.39+dfsg-1
- trixie-backports 9.42+dfsg-1~bpo13+2
- testing 9.42+dfsg-1
- unstable 9.45+dfsg-2
| Mojo::BaseUtil(3pm) | User Contributed Perl Documentation | Mojo::BaseUtil(3pm) |
NAME¶
Mojo::BaseUtil - Common utility functions used in Mojo::Base, re-exported in Mojo::Util
SYNOPSIS¶
use Mojo::BaseUtil qw(class_to_patch monkey_path);
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.
SEE ALSO¶
Mojolicious, Mojolicious::Guides, <https://mojolicious.org>.
| 2024-12-07 | perl v5.40.0 |