yeah , actually , it s a very small part of a big program.
ok let me ask you if can tell me how i can put those values in a hash.
i tried this . it didn t work:
my %hash;
$hash{ $key } = $value; ( $key = Name ; $value = ID )
then my @temp = %hash;
print @temp;
i was trying for...
thank you for ur reply,
example :
John 00001 20
John 00001 30
Albert 00002 10
John 00003 10
Albert 00002 20
Albert 00004 20
result:
John 00001 50
Albert 00002 30
John 00003 10
Albert 00004 20
thx
i have a file with this format
Name ID Grade : those are seperated by tab
but in the array i have some entries ( name && ID duplicate)
i want a way to put those duplicate in one line and add the grades of each.
any idea?? maybe using hash ll help?? how can i put this array...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.