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

Re: Re: Short Refactoring Tip: let the object do it for you

by dws (Chancellor)
on May 22, 2003 at 03:33 UTC ( [id://259971]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    BAD:           if ($po->status->name eq 'Sent') ...
    ALMOST AS BAD: if ($po->can_send) ...
    GOOD:          $po->send
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others exploiting the Monastery: (3)
As of 2024-04-19 22:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found