in reply to how to print values?

See perlreftut

$res = {foo=>bar}; # a hash ref $res-> # de-reference and then... {foo}; # ...look up a key in the hash