monkeyking
April 17th, 2009, 04:03 AM
Hi Im a beginner in perl, and my problem is maybe a design error comming from other programming languages.
Basicly I got a file with the the following columns.
id1 id2 val1 val2
1 1 asdf fds
2 3 asdf dfd
1 2 dfa dad
I want to populate a hash array with the keys id1 and id2.
so that I afterwards can get the values val1 and val2.
But the problem is, that I want to extract the vals,
according to the ascending order of id2 with id1 fixed
like
1 1 asdf fds
1 2 dfa dad
I hope it makes sense
thanks in advance
Basicly I got a file with the the following columns.
id1 id2 val1 val2
1 1 asdf fds
2 3 asdf dfd
1 2 dfa dad
I want to populate a hash array with the keys id1 and id2.
so that I afterwards can get the values val1 and val2.
But the problem is, that I want to extract the vals,
according to the ascending order of id2 with id1 fixed
like
1 1 asdf fds
1 2 dfa dad
I hope it makes sense
thanks in advance