Click here to get back home

Sorting Hash of Hashes with HEAP module

 HomeNewsGroups | Search

comp.lang.perl.modules - Discussion about PERL modules 

get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
Sorting Hash of Hashes with HEAP module Ilja 03-17-2005
Posted by Ilja on March 17, 2005, 2:56 pm
Please log in for more thread options


Hi,
I would like to use the Heap module from CPAN to sort Hash of Hashes by
values,
keeping track of what pairs of keys belong to what values.

I am new to OO programming, so I don't quite understand how I can use
the Heap module for that.

The SYNOPSIS provided in the documentation for Heap:
use Heap::Elem::SomeInheritor;

use Heap::SomeHeapClass;

show/hide quoted text

show/hide quoted text

does not help me at this point. I don't see how one can create and get
attributes of the $elem, if needed(if that is the way to go).If anyone
has used Heap with Hash of Hashes before or knows how to do that, I
would appreciate any help.



Similar ThreadsPosted
Modules for hash functions? (ie, common algorithms for computing hash keys, not manipulating perl hashes) August 26, 2006, 7:08 pm
What can you use to tie a hash of hashes to either dbm or ascii? December 2, 2007, 12:26 pm
Namespace for a searching a hash by key name module? April 16, 2009, 1:22 pm
Tie::FlatFile::Hash : visualize a flatfile database as a hash of arrays March 7, 2009, 7:35 pm
Module for storing hash of strings to a file. Tie:...? October 18, 2009, 1:29 am
How to Add dynamic array/hashes to Curses::UI:Listbox -lables January 5, 2008, 1:40 am
Hash July 14, 2006, 5:27 pm
Is a hash the best method to do this? December 24, 2007, 1:23 pm
Options for passing Hash to a subroutine. March 30, 2005, 7:39 pm
Announce: Set::Array, Set::Hash, Set::String - new maintainer January 8, 2005, 10:04 am

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Driving a better car - Fuelzilla.com

Cabling site for homeowners and pros alike - Cabling-Design.com

Friends:

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap
Privacy Policy