in reply to creating a hash of arrays/hashes

I would like to look up the values of the codes contained in the array value and extend the hash,

You forgot to tell us how and what with you want to extend the hash.

extracting the final information as required.

Please also enlighten us what "information as required" means in this context.

The following snippet achieves the required result but doesnot extend the hash and it can be seen that extending the level would be quite complex

That pushes the key and values onto the array @allmembers. I can't see why you want to do that.

I am missing a hint towards what you are trying to accomplish, could you specify it some more?

Cheers, Sören

Replies are listed 'Best First'.
Re: Re: creating a hash of arrays/hashes
by jonnyfolk (Vicar) on Mar 30, 2004 at 17:59 UTC
    The information required is the path connecting the various codes. So if you start at basic level you can see that in the example I gave
    'fr065601' connects to 'fr065600', 'fr065602'
    Now taking it to level 1
    'fr065601' connects to 'fr065600', 'fr065601' , 'fr065602'
    This is found by looking up the values 'fr065600', 'fr065602' as keys in %partners and finding their values.

    This could continue for many levels
    ('fr065601' connects to 'fr065600', 'fr065601' , 'fr065602' , 'fr06560 +4' , 'fr065602' )

    The snippet I included does achieve this for 2 levels