in reply to how to print values?
$res = {foo=>bar}; # a hash ref $res-> # de-reference and then... {foo}; # ...look up a key in the hash [download]