GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
Mojo::BaseUtil(3) User Contributed Perl Documentation Mojo::BaseUtil(3)

Mojo::BaseUtil - Common utility functions used in Mojo::Base, re-exported in Mojo::Util

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

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.

Mojolicious, Mojolicious::Guides, <https://mojolicious.org>.

2024-05-13 perl v5.40.2

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.