in reply to Re: Can a defined value be of zero length?in thread Can a defined value be of zero length?
However, in this particular case, the test for definedness is not needed:
Only since 5.12. Many people still use 5.8 and 5.10.