BarMeister has asked for the wisdom of the Perl Monks concerning the following question:
The module only contains one routine so I do an auto-export. Here is how I do the export:
package ATG::Constants; use strict; use warnings; use base qw(Exporter); our @EXPORT = qw(const); sub const { #code goes here }
Every other module that needs this routine I say use ATG::Constants.
Am I doing something wrong here? Since I am getting this warning I would assume that I am.
Thanks for any help.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: exporting subroutine in mod_perl
by perrin (Chancellor) on Mar 30, 2006 at 16:12 UTC | |
by BarMeister (Beadle) on Mar 30, 2006 at 16:25 UTC | |
by perrin (Chancellor) on Mar 30, 2006 at 17:17 UTC | |
by BarMeister (Beadle) on Mar 30, 2006 at 19:21 UTC | |
by Anonymous Monk on Jul 08, 2006 at 08:32 UTC |