in reply to Re^2: Collapsing a string to unique characters
in thread Collapsing a string to unique characters

No good. Hash keys are unordered.
So? The OP didn't make it a requirement the result was ordered:
I have a number of strings, made up only of 64 characters: a-zA-Z0-9/+ . I need to collapse these down to just the unique characters in the string.

Besides, Perlmonks has a long tradition of making small changes to the requirements for the sake of winning at golf. ;-)

  • Comment on Re^3: Collapsing a string to unique characters

Replies are listed 'Best First'.
Re^4: Collapsing a string to unique characters
by ikegami (Patriarch) on Jan 10, 2009 at 17:32 UTC
      Technically, I should have updated the OP, but I didn't, so if my opinion counts, I'd cut JavaFan some slack.

      I've learned a LOT from this thread. Thanks to all!