Thanks, jwkrahn and sleet. It seems that starting with Perl 5.12 it's valid to call length with an undef value. It's a relatively recent change.
My only concern with this is that it seems too obtuse, so I wondered if it is really idiomatic. I checked a couple of modules and that seems to be the case.
Thanks. I consider this resolved.
In reply to Re: Checking string emptiness
by dave93
in thread Checking string emptiness
by dave93
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |