Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: Code Maintainability

by kyle (Abbot)
on Dec 03, 2008 at 23:01 UTC ( #727827=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    upchuck() if ! $healthy;
    
  2. or download this
    Exception::Of::Doom->throw( error => 'Detailed error messages are impo
    +rtant, especially when this error happens' ) if $oops;
    
  3. or download this
    upchuck() unless $healthy;  # doesn't sound right
    error() unless happiness_ensues();   # better?
    
  4. or download this
    if ( ! $healthy ) {
        upchuck();
        die;
    }
    
  5. or download this
    print STDERR join("\n", @lines), "\n";
    
  6. or download this
    print STDERR map { "$_\n" } @lines;
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (7)
As of 2015-07-05 09:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (61 votes), past polls