note
Discipulus
Hello [rumpumpel1],<P>
you probably mean that <C>TeamForge6</C> will use many other modules and you want to spot where <C>login</C> sub is located?<P>
For sure there are safer method, safer in respect to what i propose here, but..<P>
Symbol table has the information you want. Dealing with that is somehow dangerous but some module, for debugging task, can be helpful.<P>
For example [METAMOD://Devel::Symdump] can be used to inspect symbol table. The following oneliner search the whole symbol table, recursively and in any package for a function given in as <C>$ARGV[0]</C><P>
<c>
perl -MDevel::Symdump -E "package A{sub asub{1}}package B::B{sub bsub{1}};; $sym=Devel::Symdump->rnew('main');
for $p($sym->packages){
for ($sym->functions($p)){die qq($_ found in package $p) if $_ eq $p.'::'.$ARGV[0]}
}" bsub
B::B::bsub found in package B::B at -e line 1.
</c><P>
<B>PS</B> sligthly modified the above to show that it recurse package names<P>
I have many evil links about symbol table at my [href://?node_id=174111#symbol table and typeglobs|homenode]<P>
L*<P>
<div class="pmsig"><div class="pmsig-174111">
There are no rules, there are no thumbs..<BR>
Reinvent the wheel, then learn The Wheel; may be one day you reinvent one of THE WHEELS.
</div></div><!-- Wiki2Monks {"version":1.1416} -->
1202071
1202071