title: Perl - Global variables available in all included scripts and modules?
body: <p>So lets say I have a <code>main.pl</code> script and in that script I need to declare some variables (any kind of variable constant or normal) and those variables need to be available through all scripts and modules that I'll include from that <code>main.pl</code> script automatically.</p>
  
  <p>What I mean if I have a variable <code>$myVar</code> in <code>main.pl</code> and from <code>main.pl</code> I require <code>script1.pl</code>, <code>script2.pl</code> or <code>script3.pm</code>, and from anyone of those scripts I need to access <code>$myVar</code> as you would access any var defined in that specific script or module.</p>
  
  <p>I've searched on the net, but I've only found examples where you can access variables from the scripts you include or extract variables from modules; but that's not what I want.</p>
  
  <p>Isn't there a keyword like in PHP where you would use <code>global $var1, $var2</code> etc. to use variable from the parent script?</p>
  
  <p>Any example, documentation or article is acceptable - basically anything that could help me accomplish that would be helpful.</p>