On Mon, 7 May 2001, Craig Moynes/Markham/IBM wrote:
> Stumped on this problem
> my ( %self );
>
> $self->{DF_SPEC} = {
Why do you define %self as a hash then use it is if it were a reference to
a hash? This may not be the cause of your problem, but it is an
inconsistency. Are you using -w and 'use strict'? It may flag down some
subtle bugs in this hash that aren't immediately apparent. Those
self-references are confusing and really aren't good data structure
design, IMHO.
One question I do want to ask is why you are using a hash like this? You
can create a much more organized and maintainable data structure by using
array refs and hash refs, instead of using self references -- having
elements in a hash that point to references to itself are only going to
give you monstrous headaches.
-- Brett
http://www.chapelperilous.net/btfwk/
------------------------------------------------------------------------
Genius is the talent of a person who is dead.