[Omaha.pm] short is good

Theodore Katseres tedkat at gmail.com
Wed Apr 21 08:13:10 PDT 2010


2010/4/20 Jay Hannah <jhannah at omnihotels.com>

>  laugh... caught myself changing code to this
>
>
>
>    my $response;
>
>    unless ( $response = $self->send() ) {
>
>      return 0;
>
>    }
>
>    return $response;
>
>
>
> this is much better:
>
>
>
>    return $self->send();
>

For some extra GOLF points you could

{
 ...
  $self->send();
}

-- 
Ted Katseres
     ||=O=||
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.pm.org/pipermail/omaha-pm/attachments/20100421/8dbcb911/attachment.html>


More information about the Omaha-pm mailing list