sub isEmpty { return defined $_[0] ? !length($_[0]) : 1; }
sub isEmpty { defined $_[0] or return 1; return !($_[0] =~ tr|||c); }
sub isEmpty { return !(defined $_[0] && $_[0] =~ m/./); }
In reply to Re: Checking string emptiness
by harangzsolt33
in thread Checking string emptiness
by dave93
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |