grep does not work that way. grep searches through a list and returns the elements for which a given predicate is true.
It seems to me, from the name of your variable, that you would be better served by a different tool, in this case XML::LibXML or XML::XPath or XPath expressions in general.
In reply to Re: grep in hash of array
by Corion
in thread grep in hash of array
by rose
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |