![]() |
|
Just another Perl shrine | |
PerlMonks |
Automatically export all subs in a moduleby George_Sherston (Vicar) |
on Dec 19, 2001 at 16:52 UTC ( #133106=perlquestion: print w/replies, xml ) | Need Help?? |
George_Sherston has asked for the wisdom of the Perl Monks concerning the following question:
Just a little one, but it's been bothering me, so I crave indulgence of wise monks. I have a "module", which is nothing more than a repository for subroutines I'm working on. It's basically so I don't have to retrieve and save a huge script each time I edit, and to impose some loose-coupling discipline. When finished, the sub gets cut 'n' pasted into its final home. So anyway, at the bottom of this module I have our @EXPORT = qw/Whatever_I_happen To_be_working On_at_present/; And obviously I keep having to rewrite this line, as the contents of the module (called "devbox.pm") change. What I'd like to be able to do is automatically export everything in the name space. I've tried all the variations I can think of on our @EXPORT = qw/devbox::*/; to no avail. Is there a way? § George Sherston
Back to
Seekers of Perl Wisdom
|
|