title: How to declare a variable globally so that it's visible for all perl modules?
body: <p>Hi I have a perl script named main.pl. This perl script is calling three perl modules named <code>sub1.pm</code>, <code>sub2.pm</code>, and <code>sub3.pm</code>. <code>sub.pm</code> is returning three hashes which are being used in <code>sub2.pm</code> and <code>sub3.pm</code>. I am passing the hashes as input parameter to sub2 and sub3. Instead is there any way that I can declare the hashes globally so that it will be visible to these two perl modules?</p>