Re: Global Scope of Hash
Michael Herger <slim-b/[email protected]>
| Newsgroups | gmane.music.equipment.slimdevices.devel |
|---|---|
| Message-ID | <[email protected]> |
> What is the correct way to define this hash so it can be seen in
> routines in both files?
Create an accessor method to get the variable (or a reference to it)
from whereever you need
sub getMyHash {
\%myHash;
}
my $hashRef = Plugins::DenonAvpControl::Plugin::getMyHash();