I didn't read those articles, but then they wouldn't have been aimed at me.
The only trick is that you have to load those modules and have an import method that calls their import method. If you're exporting specific functions into their namespace, the best way to do so is to import those functions into your space and then re-export them yourself using Exporter. (Note, doing that re-exporting is probably a really good way to create a bad mess...) On Wed, Sep 2, 2015 at 11:18 AM, Morse, Richard E.,MGH < [email protected]> wrote: > Hi! A few years ago, there was a spate of articles online which described > how to create a “loader” module — the idea was that instead of having to > add a whole bunch of boilerplate to the start of every file, you could have > just one module that would import a whole bunch of things. > > An example of such a module is Modern::Perl. Instead of doing: > > use warnings; > use strict; > use IO::File; > use IO::Handle; > use ‘:5.10’; > > you just do > > use Modern::Perl; > > Unfortunately, I can’t seem to find any of those articles anymore, > probably because I’m not searching for the right terms. > > Does anyone know what I should be searching for? > > Thanks, > Ricky > > > The information in this e-mail is intended only for the person to whom it > is > addressed. If you believe this e-mail was sent to you in error and the > e-mail > contains patient information, please contact the Partners Compliance > HelpLine at > http://www.partners.org/complianceline . If the e-mail was sent to you in > error > but does not contain patient information, please contact the sender and > properly > dispose of the e-mail. > > _______________________________________________ > Boston-pm mailing list > [email protected] > http://mail.pm.org/mailman/listinfo/boston-pm _______________________________________________ Boston-pm mailing list [email protected] http://mail.pm.org/mailman/listinfo/boston-pm

