To retrieve gene name & function thorugh Genbank id (gi|9910297)

Hi ,
I have list of genbank id's and ref number in this format.
gi|9910297|ref|NM_019974.1|

I want to retrive the gene name and fuction for each genbank list. I have around 1300 gi numbers in my excel sheet.

So anybody can help me to retrive the information from NCBI through perl script or any other package?

I can see the information through this link
http://www.ncbi.nlm.nih.gov/nuccore/9910297
for one by one..

Shibu John.