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

Re^3: Automatically load module on startup?

by bms (Monk)
on Mar 09, 2012 at 05:53 UTC ( #958626=note: print w/replies, xml ) Need Help??


in reply to Re^2: Automatically load module on startup?
in thread Automatically load module on startup?

AutoLoader doesn't load modules. If perl receives an undefined subroutine, it starts looking in the auto directory for it. If it finds the proper .al file, it uses it.

Despite AutoLoader not loading full modules, it may be something that the OP may want to look at.

  • Comment on Re^3: Automatically load module on startup?

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://958626]
help
Chatterbox?
[choroba]: No, if there are no threads, then the user wants to use MCE. If there are threads, the user can choose.
[1nickt]: choroba Understood. I'm wondering about the logic in a cpanfile. If the perl doesn't support threads, it's easy: require MCE. If the perl does support threads, as you say the user has a choice, so require both? Or, assume that irrespective of the choide
[1nickt]: ... choice, the threaded-perl user *probably* wants to use threads, therefore only require threads and leave MCE out, allowing the user to manually install if desired?
[choroba]: just require any of MCE and threads. Not sure if that's possible in the cpanfile, but should be possible early in the Makefile

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (12)
As of 2017-10-18 13:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My fridge is mostly full of:

















    Results (244 votes). Check out past polls.

    Notices?