Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: [Q]: How to include modules conditionally (using the pragma 'use')?

by WizardOfUz (Friar)
on Mar 08, 2010 at 09:11 UTC ( [id://827350]=note: print w/replies, xml ) Need Help??


in reply to [Q]: How to include modules conditionally (using the pragma 'use')?

BEGIN { my $LOAD_FOO = 1; eval "use Foo; 1;" or die $@ if $LOAD_FOO; }
  • Comment on Re: [Q]: How to include modules conditionally (using the pragma 'use')?
  • Download Code

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others about the Monastery: (3)
As of 2024-04-25 16:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found