in reply to Re: Incrementing a hash of array value
in thread Incrementing a hash of array value

Thanks for looking into this. This would work for the sample data above but breaks when new nodes are added such as (C01, C01.111, D01...) The children have also their own children and the children have siblings. I am after a way to hide the complexity of viewing all nodes. A perfect example of what I am after is available at: http://www.nlm.nih.gov/mesh/2004/MeSHtree.A.html. It's done through CGI.
  • Comment on Re^2: Incrementing a hash of array value

Replies are listed 'Best First'.
Re^3: Incrementing a hash of array value
by wfsp (Abbot) on Jul 26, 2004 at 14:40 UTC
    change:
    $k =~ /(M\d{2}\.\d{3})/;
    to:
    $k =~ /(\w\d{2}\.\d{3})/;

    If I still haven't understood you properly I would need to see a more complete example of the real data you are using.