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

Re^2: Hash Set

by tomazos (Deacon)
on Sep 11, 2005 at 07:56 UTC ( #491029=note: print w/replies, xml ) Need Help??


in reply to Re: Hash Set
in thread Hash Set

A list can contain multiple identical elements. A set cannot.

I want it to be able to contain any scalar (not just integers).

Specifically the operations I want to do are as per the subs I gave in my example:

  • add an element (no-op if already a member)
  • test if an element is contained
  • iterate over all the elements

-Andrew.


Andrew Tomazos  |  andrew@tomazos.com  |  www.tomazos.com

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (8)
As of 2023-10-04 07:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?