Quantcast
Channel: Squeezebox : Community : Forums
Viewing all articles
Browse latest Browse all 6235

Global Scope of Hash

$
0
0
> 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();

Viewing all articles
Browse latest Browse all 6235

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>