Subject: | File::Spec::Unix::catdir doesn't check for defined-ness |
# expected: BOOM
# actual: /file.txt
File::Spec::Unix->catfile(undef, 'file.txt')
No one in their right mind would explicitly pass undef to this function,
especially since the behaviour in that situation isn't described in the
File::Spec docs.
Accidents do happen though (see [rt.cpan.org #84914]), and it would be
handy if File::Spec made some noise in this situation so that the cause
for failure is more obvious, not occurring at an unnecessary distance.