Being new does not preclude you from showing effort. Please post the code you written so far to try and solve this problem. If you have not written any, all I can do is point you to a basic perl book. -------------------------------------------------