in reply to Re: Checking string emptiness
in thread Checking string emptiness

It would need to be length($string // '') to avoid uninitialized value warnings.

Replies are listed 'Best First'.
Re^3: Checking string emptiness
by ikegami (Patriarch) on Apr 05, 2025 at 00:01 UTC

    Not since 5.12. length undef returns undef without warning since then.