Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: constants wont optimize

by Anonymous Monk
on Jul 10, 2011 at 01:26 UTC ( #913562=note: print w/replies, xml ) Need Help??


in reply to constants wont optimize

use if eval { require mod; 1 }, qw' constant haveMod 1 '; use if not exist $INC{'mod.pm'}, qw' constant haveMod 0 '; use Module::Loaded qw' is_loaded '; use constant haveMod => !! is_loaded('mod');

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others scrutinizing the Monastery: (6)
As of 2023-12-10 23:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What's your preferred 'use VERSION' for new CPAN modules in 2023?











    Results (41 votes). Check out past polls.

    Notices?