[PLUG] Perl sorting problem...

Fred James fredjame at fredjame.cnc.net
Mon Aug 8 04:34:52 UTC 2011


someone wrote:
> Quoting Fred James <fredjame at fredjame.cnc.net>:
>
>   
>> someone wrote:
>>     
>>> (omissions for brevity)
>>>       
>>>                     if ( $tmp > $last_lowest )
>>>                     {
>>>                          $lowest=$tmp;
>>>                     }
>>>
>>>       
>> (omissions for brevity)
>>
>> Quick question ... is this (above) what you really want to say?
>>     
>
> The last_lowest is the last value written out to the file.
> The tmp value is the current value plucked from the list.
> My hope by going through all the values and picking every one that
> is larger than the last smallest one, the next one will be grabbed.
>   
What I am reading (please correct me if I am wrong) ...
    if the temporary_value is greater than the last_lowest_value,
       then set the last_lowest_value to be equal to the temporary_value
What I am asking is, is that what you want?
Regards
Fred James




More information about the PLUG mailing list