Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

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?
Re: Re: Printing a hash in a specific order?
by Limbic~Region (Chancellor) on Mar 15, 2003 at 15:19 UTC
    webfiend,
    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?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://243295]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (17)
As of 2014-07-14 12:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    When choosing user names for websites, I prefer to use:








    Results (259 votes), past polls