One thing at a time all the time!

Welcome to Rocteur
Thursday, March 28 2024 @ 09:58 PM CET

How do I get the size of a hash ?

Yes; use the keys() function in a scalar context to get the number of
key-value pairs in the hash.

my $count = keys %hash;

--Tom Phoenix
Stonehenge Perl Training

FAQ Manager » Perl » How do I get the size of a hash ?