Closed dseynhae closed 3 years ago
lc
is a string function. undef
interpreted as a string is the empty string, with a warning. You should ensure that you do not pass undef
to functions that expect a string.
That works for me... My intuition told me: you can't interpret something as a string, if it is not defined. Yet,
0
.false
.So I was wrong, closing this...
Module:
Description When invoking the
lc
(lower-case) function on undefined content, I would expect undefined content. I'm getting an empty string instead.Steps to Reproduce
Expected behavior I'm expecting the script to produce
UNDEFINED
for both the initial variable$var
, and the lower-cases$result
.Perl configuration