in reply to Building hash tree from data file -contd

(sigh)

I posted some suggested code in your initial thread (I even tested it and it seemed to work -- it's nested down a bit, here). Now you have two places to look for answers to your one problem. Posting repeated content in different threads is a drag.

Are you staying anonymous for some particular reason? If you could manage to make up a user-id for yourself, it would be easier for you to keep track of your posts and the replies that you get. You could also use the ChatBox to draw people's attention to posts where you haven't gotten the answer you need yet.

Then there would be no need for you to keep posting the same code and the same data in multiple threads.

  • Comment on Re: Building hash tree from data file -contd

Replies are listed 'Best First'.
Re^2: Building hash tree from data file -contd
by stumbler (Acolyte) on Jul 12, 2006 at 12:35 UTC

    Sorry about all the confusion

    I had updated the original link but as I didn't get any response, I thought no one will ever look at it. Hence, I created a new post with reference to the original. ...a bit of Panic...

    As suggested, I have created an id for my own.

    Thanks for your comments and code.. It works nicely..

    Update: Using 'Tie', I was able to get the output in the order it was fed into the data structure..

    use Tie::Autotie 'Tie::IxHash'; tie my %linked_dsc, 'Tie::IxHash';

    some progress...

    I want to try few other things by shuffling the blocks in the data file,etc..like shown below and modify the code as required.

    Update 2:Atlast, I managed to achieve (script might be clumpsy though compared to your standards) what I wanted- modified the code to read and build the tree irrespective of the order in which the block appears (except for the first one) and also print the hash in the order it was read inside..

    You guys are great!!! for the help, guidance and what not.. whatelse I can say!!! special thanks to graff (as I stole his code to create the structure and used that as a subroutine)

    Again.. thanks for your time and guidance