bengmau has asked for the wisdom of the Perl Monks concerning the following question:
My subroutines compileserverhash() create a hash populate it and return a hash in the formsub initialize { my $self = shift; #$self->reset; $self->{ SERVERHASHLIST=> '%', SERVERLOCATION=> '%', }; %{$self->{SERVERHASHLIST}}=compileserverhash(); %{$self->{SERVERLOCATION}}=compileserverloc(); #%{$test1->element()} = %aa ; }
sub compileserverhash { my %hash .... return %hash }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: class object and hash
by kvale (Monsignor) on Oct 19, 2004 at 19:10 UTC | |
by bengmau (Beadle) on Oct 19, 2004 at 20:20 UTC | |
by bengmau (Beadle) on Oct 20, 2004 at 13:01 UTC | |
|
Re: class object and hash
by dave_the_m (Monsignor) on Oct 19, 2004 at 19:54 UTC | |
|
Re: class object and hash
by TedPride (Priest) on Oct 19, 2004 at 23:29 UTC |