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

Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

I have a list of servers with their status in a file. I need to get the last occurence of each of the servers in the file. The server names are VISHU, VISHU2, JITHU, JITHU2, MADHU, MADHU2
The file format is :
VISHU: server running 12/3/99
VISHU2: server down 12/3/99
VISHU :server running 3/12/00
JITHU : server down 3/12/00
JITHU2: server running 4/12/00
......

I need to find the last occurences of each of the servers.

Originally posted as a Categorized Question.