$results{$_} = $RM; # or $1 to skip $RM alltogether print LOGFILE "$_: $RM\n"; # no need to retrieve from hash