in reply to Re^2: Listing directory contents not working (SUSE Linux issue?)...in thread Listing directory contents not working (SUSE Linux issue?)...
Actually, you don't need to "chomp" the values returned by readdir.