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();
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.