Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

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

by dws (Chancellor)
on May 22, 2003 at 03:33 UTC ( #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
Node Status?
node history
Node Type: note [id://259971]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (5)
As of 2016-12-07 23:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    On a regular basis, I'm most likely to spy upon:













    Results (133 votes). Check out past polls.