in reply to perl one-liner doesn't autochomp input
Removed redundant -n from perl Sidhekin notes that -np == -p ; also removed -1 from ls because you don't need it either.