[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Omaha.pm] short is good



2010/4/20 Jay Hannah <jhannah@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=||