http://qs1969.pair.com?node_id=377062


in reply to To use a module...or not.

I'd use Perl 6.
my @results = sort { complex_operation($^a) } @list;
If you pass Perl 6's sort a block that takes a single argument, it will use it as a key for sorting the data, as a ST would.

Replies are listed 'Best First'.
Re^2: To use a module...or not.
by BrowserUk (Patriarch) on Jul 24, 2004 at 03:38 UTC

    The problem is how to flatten the nested hash keys and then reconstitute them? (+ availability:)


    Examine what is said, not who speaks.
    "Efficiency is intelligent laziness." -David Dunham
    "Think for yourself!" - Abigail
    "Memory, processor, disk in that order on the hardware side. Algorithm, algoritm, algorithm on the code side." - tachyon
      Step backwards in time and rediscover fixed length records.

        I've taken a few days to think about this and I still don't get what you mean. Sarcasm or sage advice? Maybe you could expland this a little?


        Examine what is said, not who speaks.
        "Efficiency is intelligent laziness." -David Dunham
        "Think for yourself!" - Abigail
        "Memory, processor, disk in that order on the hardware side. Algorithm, algoritm, algorithm on the code side." - tachyon