Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: set theory w/hashes? arrays? done quickly?

by fundflow (Chaplain)
on Oct 04, 2000 at 03:02 UTC ( [id://35202]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    %s1=('a'=>1, 'b'=>1, 'c'=>1);
    %s2=('a'=>1, 'c'=>1,        'd'=>1);
    ...
    @j{keys %s2}=1;
    
    print "Union is ", join(",", keys %j), "\n";
    
  2. or download this
    %inter=%s1;
    @inter{%s2}=0;
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others scrutinizing the Monastery: (None)
    As of 2024-04-25 01:51 GMT
    Sections?
    Information?
    Find Nodes?
    Leftovers?
      Voting Booth?

      No recent polls found