The software enables running and loading of classes only when a method is first called during runtime, optimizing memory usage and improving overall performance.
Using Class::Autouse is simple. Just call the 'autouse' method, passing the name of the class you want to load on method call. You can also use Class::Autouse as a pragma, turning on the developer mode or super loader.
One cool feature of Class::Autouse is that it lets you disable the module-existence check. This can be helpful if you're loading modules off a remote network drive such as NFS or SMB, and you want to avoid the extra 'stat' per module.
However, keep in mind that for debugging purposes, you'll need to set the Class::Autouse variable before the first use. Overall, Class::Autouse is a great option for boosting the efficiency of your Perl programs.
Version 1.29: N/A