perl and linked lists
Posted on 2004-10-25
I need to write a program which similates a "Rolodex".
Each page should contain the following information:
First_Name Last_Name Phone_Number
The program should be menu driven, with the following options:
1) Add a page,
2) Search for a page by last name,
3) Search for a page by phone number,
4) Remove a page (found by searching by last name).
5) Print out the whole rolodex sorted by last name.
the program must use linked lists. Each page should be represented by a
hash, and the reference to the hash should be stored as the value of a node
in the linked list. When a new node is inserted, it should be inserted into
the list so as to preserve alphabetical ordering.