in reply to Re: Sorting hashes on non-keys
in thread Sorting hashes on non-keys

> If your list is large, you may want to make this a bit faster with a Schwartzian Transform. <

That went WAY over my head! :-)

>Also, you're always adding a space to the "to" value even if the "to" value was previously empty.<

Cool! Thanks! I was having problems with "to" being undefined (the compiler was giving me lots of errors). Hopefully this will let me clean up my code.

Replies are listed 'Best First'.
Re(3): Sorting hashes on non-keys
by FoxtrotUniform (Prior) on Feb 22, 2003 at 22:11 UTC

      > If your list is large, you may want to make this a bit faster with a Schwartzian Transform.

      That went WAY over my head! :-)

    Then one certain way of improving your Perl skills is to read up on it. :-) Figuring out the Schwartzian Transform probably shouldn't be your highest priority at the moment, but it'll help your understanding of sorting, arrays, and the infamous map.

    If you're interested, I strongly recommend japhy's excellent article Re: Helping Beginners (continued).

    --
    F o x t r o t U n i f o r m
    Found a typo in this node? /msg me
    The hell with paco, vote for Erudil!