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.
|
---|
In Section
Seekers of Perl Wisdom
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.
|
---|