Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: using 'use' conditionally

by LTjake (Prior)
on Nov 05, 2002 at 01:22 UTC ( [id://210364]=note: print w/replies, xml ) Need Help??


in reply to using 'use' conditionally

There's also the lovely if module.
Example:
use constant DEBUG => 1; use if (DEBUG), 'CGI::Carp' => 'fatalsToBrowser';


--
Rock is dead. Long live paper and scissors!

Log In?
Username:
Password:

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

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

    No recent polls found