I don't see the reason why it isn't working, but here are a couple of
notes that might lead you to something.

> package SiteConfig;
> %hash=();
> 
> and define a fill_hash() routine in another package:
> 
> package common;
> use SiteConfig;
> sub fill_hash() {
> %SiteConfig::hash = ('name' => 'value',);

That looks fine.  Have you tried printing out the contents of
%SiteConfig::hash after running this?  Is there any particular reason that
you're using subroutine prototyping?  It's best to stay away from it when
you don't need it.

> use SiteConfig();
> use common;
> common->fill_hash();

Not a big problem, but fill_hash() isn't really a class method, the way
you've written it here.

> use SiteConfig();
> use common;
> my $value = $SiteConfig>>hash{'name');

Is that a typo?         ^^

- Perrin

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to