I'm sorry to keep bugging you NetWallah, but I'm still getting the uninitialized value error.
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:
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?