On Jun 29, 2012, at 6:09 AM, lina wrote:
>> 
>>> I have some data like:
>>> 
>>> 0.35 3.41 1
>>> 0.35 4.24 1
>>> 0.35 4.35 2
>>> 0.36 0.36 1
>>> 0.36 1.32 1
>>> 0.36 1.45 1
>>> 0.36 1.46 1
>>> 
>>> 
>>> wish the output look like
>>> 
>>>        0.36 1.32 1.45 1.46  3.41 4.24 4.35
>>> 0.35  0      0       0     0       1    1      2
>>> 0.36  1      1       1     1       0    0      0
>> 

[snip]

> suppose there are duplications in the @columns, the data much more like:
> 
> 0.35 1.32 3
> 0.35 4.35 2
> 0.36 0.36 1
> 0.36 1.32 1
> 0.36 1.45 1
> 0.36 1.46 1
> 
> How can I remove the duplications, uniq them?

None of those rows are the same. Can you describe in English what you are 
trying to do? At least tell us what the output should look like.


--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to