in reply to Re^3: promoting array to a hash
in thread promoting array to a hash

Finding unique references and then sorting them huh?


Examine what is said, not who speaks.
"Efficiency is intelligent laziness." -David Dunham
"Think for yourself!" - Abigail

Replies are listed 'Best First'.
Re^5: promoting array to a hash
by dragonchild (Archbishop) on Jun 14, 2004 at 11:25 UTC
    Who said anything about sorting them? And, this has been very useful when dealing with lists of singletons. :-)

    ------
    We are the carpenters and bricklayers of the Information Age.

    Then there are Damian modules.... *sigh* ... that's not about being less-lazy -- that's about being on some really good drugs -- you know, there is no spoon. - flyingmoose

    I shouldn't have to say this, but any code, unless otherwise stated, is untested

      Sorry ;). I was referring to the comment in the OP's code #reduces a file to a sorted list of unique words.

      For the more general case your method is better.


      Examine what is said, not who speaks.
      "Efficiency is intelligent laziness." -David Dunham
      "Think for yourself!" - Abigail