in reply to Parsing a text file to get the location of the latest
Here is how I'd do it:
- set newest-date to empty
- set this-record to empty
- LOOP: read a record
- if record is not approved, go to LOOP.
- if the build Date is > newest-date then move the record to this-record and set newest-date
- goto LOOP
Update: This code is already"Pythonized". Perhaps your meant "Haskellized"?
----
I Go Back to Sleep, Now.
OGB
In Section
Seekers of Perl Wisdom