Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: Groups of Objects with Common Attributes

by martink (Initiate)
on May 16, 2018 at 05:15 UTC ( [id://1214607]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    1 4 round apple,ball,orange,pumpkin
    2 2 red,round apple,ball
    ...
    4 1 fruit,orange,plant,round orange
    4 1 fruit,plant,red,round apple
    4 1 orange,plant,round,vetetable pumpkin
    
  2. or download this
    my $item2attr = {
                apple   => {red=>1,   round=>1,plant=>1,fruit=>1},
    ...
      }
      return sort @shared_items;
    }
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (3)
As of 2024-04-25 06:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found