FakeHash simulates the behavior of a Perl hash with a synthetic data structure. This is useful if you want to investigate the behavior of a Perl hash or if you want to do research into alternate hash behaviors.
As an example of why you might want to use FakeHash, I provide a subclass, FakeHash::DrawHash, which tracks changes to a hash and then generates a box-and-arrow diagram of the hash structure. The methods of FakeHash::DrawHash are easily overriden to produce output in any drawing system; the supplied code uses the Unix pic program.
Coming soon: A subclass that will emit PPM files, suitable for input to ppmtogif, cjpeg, or pnmtopng.
Return to: Universe of Discourse main page | What's new page | Perl Paraphernalia