Re: multidimensional insertion order
- From: Spin <cNaOlSePbA@xxxxxxxxxxxxxxxxxx>
- Date: Thu, 28 Jul 2005 12:21:45 -0600
it_says_BALLS_on_your forehead wrote:
a "hacky" way to do it would be to initialize a counter to 1, and prepend the counter and an underscore to your key.
then you could sort key on the hash. if the actual key itself is important (i.e. you need this to be retained) you can take it out afterwards, using regexs, substr, etc...depending on if you have a fixed width counter (e.g. 0001, 0002), or not. regex would be s/\d+_//;
hope that helps!
Thanks, I might try that. Caleb .
- References:
- multidimensional insertion order
- From: Spin
- Re: multidimensional insertion order
- From: it_says_BALLS_on_your forehead
- multidimensional insertion order
- Prev by Date: Re: Perl DBI - How to handle large resultsets?
- Next by Date: Re: can't run perl commands from command line
- Previous by thread: Re: multidimensional insertion order
- Next by thread: integer fail ...
- Index(es):
Relevant Pages
|