in reply to grep in hash of array

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.

Replies are listed 'Best First'.
Re^2: grep in hash of array
by rose (Beadle) on Aug 05, 2008 at 12:19 UTC

    Is it not possible to find without using any module?

    Thanks
    Rose

      Of course it is possible to find this out without using any module, because even modules are written in Perl.

      So, if you want to do this the hard way, you best start learning about data structures via perlreftut and perldsc. Then take a look at Data::Diver and its code. That's it.