in reply to Re: including a package - time issue
in thread including a package - time issue

Thank you Andreas.
I don't believe that a 56Kb file, which means about 2000 lines of code would help you. As for the script where I try to include the package, it is a simple
use Libs::MyPackage;
print "package included";

Replies are listed 'Best First'.
Re^3: including a package - time issue
by Corion (Patriarch) on Aug 27, 2007 at 10:45 UTC

    The code you posted does not neccessarily indicate that Libs::MyPackage is the problem. Look for example at this code:

    use Libs::MyPackage; print "Package included\n"; BEGIN { sleep 10; };

    This will print "Package included" only after 10 seconds. Any <c>use line is equivalent to a BEGIN block, so any other module could cause the same problem, as could any not/slow responding network drive if you're (trying to) loading modules from there. Also, a virus scanner might run wild.