I am writing a piece of code that right now I just want to read in all the subdirectories and files in this folder and just print them to file. When I print them to file, they are all there, but they are not in ascii alphebetical, they are in some other order that I can't seem to figure out.
How is the computer reading in this data?
Code:
opendir FILE, $dir || die "Cannot open $dir: !_.";
open OUTFILE "outfile.txt";
while ($lala = readdir(FILE)){
print OUTFILE "$lala\n";
}
How is the computer reading in this data?