Hash Keys and Values

Learn how to check for the existence of hash keys and how to access them.

Checking hash key existence

The exists operator returns a boolean value to indicate whether a hash contains the given key:

Get hands-on with 1200+ tech skills courses.