Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: Code Maintainability

by mikeraz (Friar)
on Jan 06, 2011 at 17:01 UTC ( #880874=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
     if ($DEBUG) { print STDERR "Debug: some value"; }
    
  2. or download this
     print STDERR "Debug: some value" if $DEBUG;
    
  3. or download this
    if( $Going_by_the_grocery_store ) { pickup_milk(); }
       or
    if( $in_my_town ) { meet_for_beer(); }
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://880874]
help
Chatterbox?
[1nickt]: choroba Is it a safe assumption that if there is a threaded perl then the user will want to use Thread::Queue?
[hippo]: Why not?
[1nickt]: That's good! I suppose the cpanfile would be the same however the app distro is structured ...
[1nickt]: hippo no reason why not other than wanting to check an assumption :-)
[hippo]: For a self-contained application which can therefore ensure thread safety it seems like a sensible approach.

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (14)
As of 2017-10-18 13:12 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My fridge is mostly full of:

















    Results (244 votes). Check out past polls.

    Notices?