|Keep It Simple, Stupid|
Confusion when about accessing a hash in an objectby jimbus (Friar)
|on Nov 30, 2005 at 18:33 UTC||Need Help??|
jimbus has asked for the
wisdom of the Perl Monks concerning the following question:
I'm declaring an object thusly:
And I'm trying to access with the following method:
I'm not getting anything back from the return.
To debug I used Data::Dumper on $self and there's data there:
I also grabbed part of one of the examples from perlobj as I was researching did the following:
With line #1 uncommented I get the array of keys and the whole list of keys and values printed out:
Uncommenting #2 gives me the expected value in the key array, but prints a blank value in the key and value area:
I'm very confused, can anyone help me see the error of my ways?
UPDATE: Diotalevi pointed out that I wasn't actually asking for anything in the list. Apparently, I'd grabbed the wrong test file and wasn't actually reading the debug information... in other words, it was an ID 10 T error :)
Never moon a werewolf!