in reply to package splitting and 'our' use
and then:package MyConfig; use strict; use vars qw/@settings/; # now fill in values in the setings list. ...
that's at least the way i'm doing it, but it works perfectly well. btw: wouldn't a hashtable be a better approach?package MyModule; use strict; our @settings; *settings = \@MyConfig::settings; ...
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: package splitting and 'our' use
by steves (Curate) on May 10, 2005 at 04:31 UTC |