note
djantzen
<p>
In addition to the errors and debugging tips the others have pointed out, you should know that [use] is equivalent to <code>BEGIN { require 'Module X' }</code> which means that no matter where your [use] statement occurs, it will be executed during compilation of your module. It belongs therefore at the top of the file, and not inside of this subroutine.
<p>
Also, how do you mean to call these subroutines? Like <code>MyPackage::MySub</code> or <code>MyPackage->MySub</code>? If it's the latter then you'll need to fetch the package name from <code>@_</code> and you should just drop the prototypes since they'll be ignored.
<p>
<div class="pmsig"><div class="pmsig-131165">
<hr>
"The dead do not recognize context" -- Kai, <i>Lexx</i>
</div></div>
316173
316173