in reply to sorting files by date

opendir (LOWEST, "<$input_directory_lowest")

Please re-read chromatics answer to one of your previous posts, and follow the advice therein. Read opendir and readdir.

The syntax for opendir is not the same as for open. You must not specify an open mode via < or >, since directories are never opened for writing.

--shmem

_($_=" "x(1<<5)."?\n".q·/)Oo.  G°\        /
                              /\_¯/(q    /
----------------------------  \__(m.====·.(_("always off the crowd"))."·
");sub _{s./.($e="'Itrs `mnsgdq Gdbj O`qkdq")=~y/"-y/#-z/;$e.e && print}