Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re^2: Using perl module if env is enabled

by tobyink (Canon)
on Dec 09, 2019 at 16:07 UTC ( [id://11109883]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use constant HAVE_XYZ => !!$ENV{USE_XYZ};
    use if HAVE_XYZ, 'XYZ';
    ...
    if ( HAVE_XYZ ) {
        XYZ::foo(...)
    }
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others romping around the Monastery: (4)
As of 2024-03-29 15:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found