in reply to Re: Re: Hash usage
in thread Hash usage

$hashy is a reference to a hash, whose keys are SID, SERIAL, STATUS, PROCESS, and USERNAME. When I wrote $hashy->{key} what I meant was that you should replace "key" with one of the keys of the hash for whatever information you are trying to print, so:
print "hashy's sid: $hashy->{SID}\n"; # or maybe.. print "hashy's serial: $hashy->{SERIAL}\n"; # etc..
I didn't mean to use the $key variable that is in that loop ($key actually corresponds to the pp1 value of that record from above -- print it out in the loop as well to see what it is). Sorry if that was a little confusing. You may want to look at perlreftut to understand better the syntax of the hash references you're using.

blokhead