Alberto Simões <albie@alfarrabio.di.uminho.pt> writes:
> Well, the subject says it all :)
>
> lc(undef) is the empty string.
>
> This might be good, this might be bad.
> In any case, I think it should be documented.
Interestingly, some similar cases also don't warn where they should:
$ my $foo
$ "$foo"
Use of uninitialized value $foo in string at (eval 124) line 6.
$ "HELLO $foo BAR"
Use of uninitialized value $foo in concatenation (.) or string at (eval 125) line 6.
hello bar
$ "\LHELLO $foo BAR"
Use of uninitialized value $foo in concatenation (.) or string at (eval 127) line 6.
hello bar
$ "\L$foo BAR"
Use of uninitialized value $foo in concatenation (.) or string at (eval 128) line 6.
bar
$ "\L$foo"
$
Note that the cases above all warn, except the last one. I think it
should... am I missing something? \U, \u, \l also do the same thing.
Regards,
Jonathan Rockway