Beefy Boxes and Bandwidth Generously Provided by pair Networks vroom
Do you know where your variables are?
 
PerlMonks  

Re: Extracting Unique Characters from a Array

by sub_chick (Hermit)
on Sep 07, 2006 at 17:05 UTC ( #571745=note: print w/ replies, xml ) Need Help??


in reply to Extracting Unique Characters from a Array

I have a array of numbers and I need only the unique elements to be retained.

Can you post the array you are working with?
And if you want your array to be in numerical order, you should read up on sort.



Es gibt mehr im Leben als Bücher, weißt du. Aber nicht viel mehr. - (Die Smiths)"


Comment on Re: Extracting Unique Characters from a Array
Re^2: Extracting Unique Characters from a Array
by ps (Initiate) on Sep 07, 2006 at 17:18 UTC

    The numerical data I am working with are the part numbers. They will be nothing but 4 digit numbers, followed by a decimal point and followed by another 4 digits. Here they are

    7742.8858
    7748.5855
    5581.2272
    1248.2257
    6589.5586
    5680.1886
    8762.1898
    5535.5795
    6896.6571
    6573.2575
    5487.3275
    5489.5633

    I am just pasting few for your reference. The numbers goes on..on and on... I know this array has to be sorted but I am not able to work further removing the repeating entries.

    Thank you for your immediate response.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://571745]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (13)
As of 2014-04-18 17:03 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (471 votes), past polls