in reply to Open files by date created

Here's a ST sort with a filter for regular files which doesn't depend on the presence of a dot (or its absence in directory names).

my @files_by_mtime = map { $_->[1] } sort { $a->[0] <=> $b->[0] } map { -f ? [(stat _ )[9], $_] : () } glob "$datapath/*";

I've substituted mtime for "creation time". The special filehandle _ avoids calling stat twice in that map block.

After Compline,
Zaxo