If you only want to check whether an array is empty, it's nicer to use
if (@arr) { ... }; [download]
In reply to Re: Unexpected Output by Corion in thread Unexpected Output by k_manimuthu