Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: Query anout module loading

by Anonymous Monk
on Apr 28, 2012 at 08:25 UTC ( #967779=note: print w/ replies, xml ) Need Help??


in reply to Query anout module loading

Now, my question is this that is this right to use this kind of invocation

Yes, this is the correct invocation

Can I get problems in some other perl versions if I use this?

Not with anything perl 5.* , you shouldn't worry about older perl's

What kind of effects does this have on the program?

Nothing besides duplicating work and all the pitfalls associated with that. If you can't install modules, you should consider distributing a perl, ie PAR/pp/http://www.cava.co.uk//PerlApp

Is there some better way to load a particular module only if its installed on a machine?

Not really, all the different helpers ( if, Module::Pluggable, Module::Load ... ) eventually call require


Comment on Re: Query anout module loading
Re^2: Query anout module loading
by firearm12 (Novice) on Apr 28, 2012 at 14:17 UTC
    Thanks very much

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (3)
As of 2014-09-20 03:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (152 votes), past polls