Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re^2: Loading and using packages dynamically

by Anno (Deacon)
on Aug 30, 2007 at 13:33 UTC ( [id://636074]=note: print w/replies, xml ) Need Help??


in reply to Re: Loading and using packages dynamically
in thread Loading and using packages dynamically

There are at least two problems with your suggestion:

  • It doesn't address the original problem that runtime actions are too late to help with use statements in the same file.

  • Qualifying the directory relative to the current directory, as you do in ./home/avarus/perl/myPackages/ makes the function dependent on the current directory. The script must be run in the directory where home/avarus/perl/myPackages lives for the modules to be found.

    Anno

  • Log In?
    Username:
    Password:

    What's my password?
    Create A New User
    Domain Nodelet?
    Node Status?
    node history
    Node Type: note [id://636074]
    help
    Chatterbox?
    and the web crawler heard nothing...

    How do I use this?Last hourOther CB clients
    Other Users?
    Others admiring the Monastery: (2)
    As of 2024-04-20 04:40 GMT
    Sections?
    Information?
    Find Nodes?
    Leftovers?
      Voting Booth?

      No recent polls found