I have a hash where my projects are each tagged with various codes.
@projects =
{
"Project A" => ["2","4","11"],
"Project B" => ["2","3","4"],
"Project C" => ["2","5","11"]
}
How can I search for the projects attached to a specific tag, i.e. input "4" and we get ["Project A","Project B"].
I’ve tried the standard value search method but it only works if the entire array is input, not any element within any array.
This isn’t as important but would it be possible to search by multiple tags, i.e. input ["2","11"], and we get ["Project A","Project C"]?
Try:
and: