ukhas jean wrote:
> Hello,
>    
>   I have an list of version nos. (some version nos. being repetitive) ... 
> like for eg. 
>   @arr = qw{7.2.0.6 7.2.0.5 7.2.0.6 7.2.0.5 7.2.0.6};
>    
>   I want to get only the unique values in @arr. i.e. version nos. 7.2.0.6 and 
> 7.2.0.5
>   is there an inbuilt perl-function that does this??
>    
>   (PS: I have done this using for and if-loops; but was wondering if there 
> was an easier way)
>    
>   -- Raghu
> 
>  
This is an FAQ.

perldoc -q array . . . then search for "duplicate elements"

Dan

-- 
The information contained in this communication and any attachments is 
confidential
and may be privileged, and is for the sole use of the intended recipient(s). Any
unauthorized review, use, disclosure or distribution is prohibited. If you are 
not
the intended recipient, please notify the sender immediately by replying to this
message and destroy all copies of this message and any attachments. ASML is 
neither
liable for the proper and complete transmission of the information contained in 
this
communication, nor for any delay in its receipt.


_______________________________________________
ActivePerl mailing list
[email protected]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to