Except that all of your list entries will have trailing newlines (see perl -e '@list = `ls`; print $list[0] =~ /\n/ ? "yes\n" : "no\n"') which can cause funny errors depending on how you use the list. I would actually consider a warning on failure to be a good thing in this case, although the emitted warning would be unfortunately ambiguous. But this is all fairly subjective, particularly without seeing how the list gets used.
#11929 First ask yourself `How would I do this without a computer?' Then have the computer do it the same way.