Hi Mark, I figured someone would've answered by now who still lives in Columbus, but I guess not. <div><br></div><div>Your question about getting the first statement to work... I presume the 'first statement' is </div>
<div>    
   sort rv @list;<br><br>And presumably you have some form of this statement that works with parentheses? My solution would be:</div><div>      sort { $a <=> $b } (rv @list);</div><div><br></div><div>But your best option is the 'Seekers of Perl Wisdom' section on <a href="http://perlmonks.org">perlmonks.org</a> ... or perhaps ask on <a href="http://stackoverflow.com">stackoverflow.com</a></div>
<div><br></div><div>Good luck and regards from South Florida,</div><div>Terrence (on my way to freeze and do Python in NYC)</div><div><br><br><div class="gmail_quote">On Mon, Feb 13, 2012 at 12:18 PM, Mark Geary <span dir="ltr"><<a href="mailto:geary@prismnet.com">geary@prismnet.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">So, I've got this function that returns a list and I want to sort the<br>
returned list:<br>
<br>
    sub rv (@) { reverse @_; }<br>
    sort rv @list;<br>
<br>
but perl thinks I want to use rv as the sort comparison function. If I say:<br>
<br>
    sort reverse @list;<br>
<br>
then perl knows what I want to do. How do I make the first statement<br>
work without adding lots of parentheses?<br>
<span class="HOEnZb"><font color="#888888"><br>
Mark Geary<br>
_______________________________________________<br>
Columbus-pm mailing list<br>
<a href="http://columbus.pm.org/" target="_blank">http://columbus.pm.org/</a><br>
<a href="mailto:Columbus-pm@pm.org">Columbus-pm@pm.org</a><br>
<a href="http://mail.pm.org/mailman/listinfo/columbus-pm" target="_blank">http://mail.pm.org/mailman/listinfo/columbus-pm</a><br>
</font></span></blockquote></div><br></div>