Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re^2: Hash Set

by tomazos (Deacon)
on Sep 11, 2005 at 07:56 UTC ( [id://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?Last hourOther CB clients
Other Users?
Others having an uproarious good time at the Monastery: (3)
As of 2024-04-20 01:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found