in reply to Re^2: Getting first and last element value of a hash loopin thread Getting first and last element value of a hash loop
Thanks to all for your responses. It works for me now.