Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
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?
[Discipulus]: ther is a way to golf this further:if(p$_)&(p $r)&$r!=$_ ?

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (4)
As of 2017-10-20 07:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My fridge is mostly full of:

















    Results (259 votes). Check out past polls.

    Notices?