[vox-tech] perl - A way to export ALL functions in a package?
Peter Jay Salzman
p at dirac.org
Thu Dec 23 21:35:28 PST 2004
When I make a module, I have to explicitly list the symbols I want to export
(symbols that don't need to be qualified):
package My_Package;
BEGIN
{
use Exporter();
@ISA = qw(Exporter);
@EXPORT = qw( &func1 &func2 &func3 blah blah blah );
}
Is there a way of telling perl: "Hey, just export every function that's
defined in this module". It's kind of a drag having to keep @EXPORT
updated everytime I write more (or delete) code.
Thanks,
Pete
--
The mathematics of physics has become ever more abstract, rather than more
complicated. The mind of God appears to be abstract but not complicated.
He also appears to like group theory. -- Tony Zee's "Fearful Symmetry"
GPG Fingerprint: B9F1 6CF3 47C4 7CD8 D33E 70A9 A3B9 1945 67EA 951D
More information about the vox-tech
mailing list