Yes, when $hash_ref holds a reference to a hash.
If $hash_ref doesn't hold a reference to a hash, you'll get a warning or a runtime error depending on what it holds and whether use strict 'refs'; is active or not.
In reply to Re^3: Truthfulness of references
by ikegami
in thread Truthfulness of references
by njcodewarrior
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |