http://www.perlmonks.org?node_id=589966


in reply to Empty or not empty ?

Simply:

if (@array) {}

Update: oops! Thanks to ikegami for pointing out that I negated the logic here. That could be if (!@array) {} as others have written.