Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Re^3: removing duplicates from a string list

by PeterPeiGuo (Hermit)
on Nov 27, 2010 at 21:42 UTC ( [id://874028]=note: print w/replies, xml ) Need Help??


in reply to Re^2: removing duplicates from a string list
in thread removing duplicates from a string list

Always use strict and warnings, so you would have to declare your variable with my.

With a hash, the key is unique, but not neccessarily the values.

Peter (Guo) Pei

  • Comment on Re^3: removing duplicates from a string list

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others musing on the Monastery: (4)
As of 2024-04-18 22:58 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found