$var = exists( $hash{'key'} ) ? $hash{'key'} : "non-existant";