The assignment of an empty list erases the content of %hash, but undef %hash erases the container. So these are different operations to choose from for the task at hand.
In reply to Re: '%hash = ()' is slower than 'undef %hash'
by shmem
in thread '%hash = ()' is slower than 'undef %hash'
by rsFalse
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |