Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: Groups of Objects with Common Attributes

by martink (Initiate)
on May 16, 2018 at 05:15 UTC ( #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
Node Status?
node history
Node Type: note [id://1214607]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (4)
As of 2021-04-19 12:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?