Sure:
if (has_length($x)) { ... }
Implementation of has_length left to the reader.
In reply to Re: testing defined($x) && length($x)
by ikegami
in thread testing defined($x) && length($x)
by perl5ever
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |