Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much

Re: Printing a hash in a specific order?

by webfiend (Vicar)
on Mar 15, 2003 at 15:11 UTC ( #243295=note: print w/replies, xml ) Need Help??

in reply to Printing a hash in a specific order?

If the order is important, then perhaps a hash might not be the best solution. Maybe an array or a pseudo-hash could serve your purposes better?

Update: Or, you know, what artist said :-)

I just realized that I was using the same sig for nearly three years.

  • Comment on Re: Printing a hash in a specific order?

Replies are listed 'Best First'.
Re: Re: Printing a hash in a specific order?
by Limbic~Region (Chancellor) on Mar 15, 2003 at 15:19 UTC
    As I said at the bottom of my post. I think if I were to start over, I would use an array (I believe pseudo-hashes are dead for now). I very well may start over since this is my first OO project. Thank you for re-affirming what I already guessed was the most logical solution - starting over.

    Cheers - L~R

    Update: Using an array doesn't really solve the problem, so starting over is not the answer either. Since new parameters can be added to the record once it is retrieved, the same logic for sorting the output of the hash would have to be used to splice the parameter into the array at the right location.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://243295]
and dust plays in a shaft of sunlight...

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (7)
As of 2017-12-13 02:37 GMT
Find Nodes?
    Voting Booth?
    What programming language do you hate the most?

    Results (344 votes). Check out past polls.