in reply to including a package - time issue

Do you have any idea what the problem might be?
Not unless you include your code. Read How do I post a question effectively? and update your node with relevant information.
--
Andreas

Replies are listed 'Best First'.
Re^2: including a package - time issue
by Razvanica (Novice) on Aug 27, 2007 at 10:24 UTC
    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";

      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.