more useful options | |
PerlMonks |
Extra hash key when reading text file into hashby lolindrath (Scribe) |
on May 28, 2001 at 05:49 UTC ( [id://83679]=perlquestion: print w/replies, xml ) | Need Help?? |
lolindrath has asked for the wisdom of the Perl Monks concerning the following question:
Hi everyone, I hope this isn't too much of a newbie question. This program is supposed to keep track of my grades and figureout my GPA. I'm having problems reading the file into my hash so I can work with it. I get an extra hash key that looks like this: HASH(0x812d1f8)
The code:
The data file:
I put a counter into the read function to make sure that it wasn't looping too many times and reading in a new line. That wasn't the problem. At the bottom it prints out all the semester and class keys. The classes are read into the array correctly also. The output is below in case you want to look at that. Thanks everyone. I'm sure it's something simple and an experienced eye will pick it up quickly.
--=Lolindrath=--
Back to
Seekers of Perl Wisdom
|
|