tx2coastalbiology96
New Member
- Messages
- 1
- Reaction score
- 0
- Points
- 0
If I have several lists, how do I get a list of lists with a certain element? For example:
@apple=(red,rose,pie)
@lemon=(yellow,citrus,lemonade)
@orange=(orange,citrus,juice)
How would I get a list of the fruits that are in the citrus family? Or would it be better to make a hash?
%fruit=(
'apple'=>['red','rose','pie']
'lemon'=>['yellow','citrus','lemonade']
'orange'=>['orange','citrus','juice'])
Thanks.
@apple=(red,rose,pie)
@lemon=(yellow,citrus,lemonade)
@orange=(orange,citrus,juice)
How would I get a list of the fruits that are in the citrus family? Or would it be better to make a hash?
%fruit=(
'apple'=>['red','rose','pie']
'lemon'=>['yellow','citrus','lemonade']
'orange'=>['orange','citrus','juice'])
Thanks.