in reply to Re^3: Counting keys in a hash
in thread Counting keys in a hash
I can't figure out why its still giving me the error. I have my original text file with all of the data dumped into an array and my code looks like this:
while (@log) { <code here> }
The array @log contains my data. The loop will still work if the data is in an array, won't it? When the code is run, it continually throws the uninitialized value error until I Ctrl^C to stop it. It never leaves the loop.
I'm going to continue to work on it because your output looks exactly how I need it to look... If you have anymore suggestions let me know.
UPDATE: Its working now... I had to change the while to a foreach because it is an array and not a filehandle... I may be able to figure this out by myself, but is there a way to make it display the device on every output instead of just the first one?
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^5: Counting keys in a hash
by Athanasius (Archbishop) on Nov 20, 2012 at 14:50 UTC |