<?xml version="1.0" encoding="windows-1252"?>
<node id="1007543" title="Why do multiple requires not work?" created="2012-12-06 06:45:31" updated="2012-12-06 06:45:31">
<type id="115">
perlquestion</type>
<author id="992913">
srinigs</author>
<data>
<field name="doctext">
Hi &lt;br&gt;
&lt;p&gt;
Supposing i have a module Mod.pm which has a statement "require /a/b/script" and there is a script run.pl which has the statements "use Mod" and "require /a/b/script", then, when any routine inside /a/b/script is called from run.pl, I get the "Undefined routine ..." error. This error does not appear when the require statement is removed from Mod.pm module, but the vice versa is not true (ie when I remove the require statement from run.pl and retain the one in Mod.pm, the error still persists). 
&lt;/p&gt;
&lt;p&gt;
  Can you please explain why multiple use statements are not a problem but multiple "require" statements cause an issue?
&lt;/p&gt;</field>
</data>
</node>
