http://www.perlmonks.org?node_id=1002070


in reply to Parsing a text file to get the location of the latest

Here is how I'd do it:
  1. set newest-date to empty
  2. set this-record to empty
  3. LOOP: read a record
  4. if record is not approved, go to LOOP.
  5. if the build Date is > newest-date then move the record to this-record and set newest-date
  6. goto LOOP
What does your code look like?

Update: This code is already"Pythonized". Perhaps your meant "Haskellized"?

----
I Go Back to Sleep, Now.

OGB