Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: Code Maintainability

by jkva (Chaplain)
on Dec 05, 2008 at 07:35 UTC ( [id://728210]=note: print w/replies, xml ) Need Help??


in reply to Code Maintainability

Very nice meditation!

Since I noticed some discuss their debug flag techniques, I tend to do either

my $DEBUG = 1; $DEBUG && print 'debugging mode';

or

my $DEBUG = 1; $DEBUG && do { print 'isn\'t'; print 'that something' }

in case of blocks.

Having $DEBUG in the start of the line immediately tells you there's debug related code coming through.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others taking refuge in the Monastery: (4)
As of 2025-07-14 00:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.