Hi,

I seem to have an odd problem with variable setup and use. The platform
is apache/mod_perl as per LinuxMandrake 7.1.

Here is the setup:

A) I have a configuration.pm with variable declarations and no "use
strict" similar to this:

...
@array=()
...
%hash=()
...

B) Then I have a library of common routines that make use of these
variables. These include routines to fill these variables with data.

sub fill_array();
sub fill_hash();

C) Now in startup.pl is "use" both packages and call the fill_xyz()
routines.

D) In the mod_perl scripts (the guts of these scripts is again in a
package that gets called by a wrapper .pl script) I "use" both packages
and make use of the data with $value=$configuration::array[] and
$value=$configuration::hash{} ... just reading their values.

The Problem:
The array is filled. The hash is empty.

Any ideas? Workarounds? Tests?

What would be the preferred structure to define static variables that
can be used for all modules and pre-initialized by startup.pl.

Cheers
Andreas

--
|  Andreas Schiffler                    [EMAIL PROTECTED]  |
|  Senior Systems Engineer    -    Deskplayer Inc., Buffalo  |
|  4707 Eastwood Cres., Niagara Falls, Ont  L2E 1B4, Canada  |
|  +1-905-371-3652 (private)  -  +1-905-371-8834 (work/fax)  |


Reply via email to