Try throwing this into file2.pm:

   sub AUTOLOAD {
             print "What hath god wrought?\n"
   }

And then call:

   file2->any_function_name;

That is if you have a:

   use file2;

AUTOLOAD is a catch all function, method really, but this should work 
considering how Perl blurs the line between classes and modules.  If you 
don't see the message, you're not loading file2 at all.

- Johnathan


Timothy Kimball wrote:

> : I am using a WinNT system and I'm running a script that calls
> : a subroutine in file1.pm. Then file1.pm calls a subroutine
> : from file2.pm. The script can't seem to find the subroutine
> : that in is in file2.pm.
> 
> Does your file1.pm have "use file2" in it?
> 
> -- tdk
> 
> 

Reply via email to