Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: Code Maintainability

by kyle (Abbot)
on Dec 03, 2008 at 23:01 UTC ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://727827]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others goofing around in the Monastery: (4)
As of 2024-04-16 19:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found