Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

hash help please:

Status
Not open for further replies.

perldoubt

Technical User
May 18, 2008
5
US
Hi all,

I am trying to parse information from multiple files for some feilds.

My objective is to make a matrix out of those feilds.
for exanple:I have 3 feilds with queryname,subject name and percent ID.

I want to print in an excel sheet
Qname1 Qname2
Subname1 percent ID1 percent ID2

I am trying to catch the Qname,Sname and Ids in a ID hash:

push(@{$idmatrix{$qname}},$qname[$q]);
push(@{$idmatrix{$id}},$id);
push(@{$idmatrix{$sname}},$sname[$s]);

I am unable to figureout how to print them in the format i wanted.

Also how to avoid repeated name in the hash;


Please ...please help me.

Thanks


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top