At 2.), I interpreted your question as in just emptying all slots, without removing their keys.# 1.) scalar grep defined, values %$hash; # 2.) undef $_ for values %$hash;
Makeshifts last the longest.
In reply to Re: One liner to Check and undef hash elements
by Aristotle
in thread One liner to Check and undef hash elements
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |