Hello,

Following a suggestion by a coworker, I wrote the following module:


NAME
    relative - Load modules with relative names

DESCRIPTION
This module allows you to load modules using only parts of their name,
    relatively to the caller module.

SYNOPSIS
        package BigApp::Report;
        use relative to_parent => qw(Utils);
        # loads BigApp::Utils

        use relative to_self => qw(Create Publish);
        # loads BigApp::Report::Create, BigApp::Report::Publish

__END__


The interest of such a module would be to ease writing modules using a big set of sibling modules (in the same hierarchy), and would also simplify refactoring and renaming.


--
Sébastien Aperghis-Tramoni

Close the world, txEn eht nepO.


Reply via email to