in reply to
Delete a zero-valued hash element
delete
returns a list of the values deleted. Your delete will return 0 causing your error message to be printed.
Comment on
Re: Delete a zero-valued hash element
Select
or
Download
Code
In Section
Seekers of Perl Wisdom