Maybe it&#39;s my old brain, but I like using &quot;return&quot; in this context for code that isn&#39;t being submitted to a PerlGolf competition.<br><br>I&#39;ve encountered enough bad/sketchy coding that didn&#39;t define a return value for a subroutine that I would be suspicious if the original programmer /meant/ to return the $self-&gt;send() value, or if they thought they were calling some other routine (and the return value was just a by-product/accident).<br>

<br>Golf is great, but it isn&#39;t always productive.  (Much like &quot;real golf&quot;.)<br><br>DanL<br><br><div class="gmail_quote">2010/4/21 Theodore Katseres <span dir="ltr">&lt;<a href="mailto:tedkat@gmail.com">tedkat@gmail.com</a>&gt;</span><br>

<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><div class="gmail_quote">2010/4/20 Jay Hannah <span dir="ltr">&lt;<a href="mailto:jhannah@omnihotels.com" target="_blank">jhannah@omnihotels.com</a>&gt;</span><div>

<div></div><div class="h5"><br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">









<div link="blue" vlink="purple" lang="EN-US">

<div>

<p class="MsoNormal"><font face="Courier New" size="2"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;">laugh... caught myself changing code to this</span></font></p>

<p class="MsoNormal"><font face="Courier New" size="2"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;"> </span></font></p>

<p class="MsoNormal"><font face="Courier New" size="2"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;">   my $response;</span></font></p>

<p class="MsoNormal"><font face="Courier New" size="2"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;">   unless ( $response = $self-&gt;send() ) {</span></font></p>

<p class="MsoNormal"><font face="Courier New" size="2"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;">     return 0;</span></font></p>

<p class="MsoNormal"><font face="Courier New" size="2"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;">   }</span></font></p>

<p class="MsoNormal"><font face="Courier New" size="2"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;">   return $response;</span></font></p>

<p class="MsoNormal"><font face="Courier New" size="2"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;"> </span></font></p>

<p class="MsoNormal"><font face="Courier New" size="2"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;">this is much better:</span></font></p>

<p class="MsoNormal"><font face="Courier New" size="2"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;"> </span></font></p>



<p class="MsoNormal"><font face="Courier New" size="2"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;">   return $self-&gt;send();</span></font></p></div></div></blockquote></div></div><div><br>For some extra GOLF points you could <br>



<br>
{<br>
 ...<br>
  $self-&gt;send();<br>
}<br> </div></div>-- <br>Ted Katseres<br>      ||=O=||<br>
<br>_______________________________________________<br>
Omaha-pm mailing list<br>
<a href="mailto:Omaha-pm@pm.org">Omaha-pm@pm.org</a><br>
<a href="http://mail.pm.org/mailman/listinfo/omaha-pm" target="_blank">http://mail.pm.org/mailman/listinfo/omaha-pm</a><br></blockquote></div><br><br clear="all"><br>-- <br>***************** ************* *********** ******* ***** *** **<br>

&quot;Quis custodiet ipsos custodes?&quot;<br>    (Who can watch the watchmen?)<br>    -- from the Satires of Juvenal<br>&quot;I do not fear computers, I fear the lack of them.&quot;<br>    -- Isaac Asimov (Author)<br>** *** ***** ******* *********** ************* *****************<br>