```{index} single: used_buckets; Hash::Util function ``` ```{index} single: Hash::Util::used_buckets; Perl function ``` # used_buckets Return the count of buckets that currently hold at least one key. ## Synopsis ```perl my $used = used_buckets(%hash); ``` The value is computed from scratch on every call by walking the bucket array - there is no cache. Avoid calling it inside a hot loop on a large hash.