in reply to Hash creation

$newhash is a reference to a hash rather than a hash, so
print $newhash->{new_value};

will print "yellow".


Unless I state otherwise, all my code runs with strict and warnings