in reply to Re: sort by date
in thread sort by date

People often try that. And then ask for perl to change to make it work. The usual answers are:
  • you can use tie if you want <> to automatically become readdir
  • since perl can have both a file and dir open with handle IMD, this becomes ambiguous