in reply to sort by date

@allPictures=<IMD>;
What was the point of this line?


($_='kkvvttuubbooppuuiiffssqqffssmmiibbddllffss') =~y~b-v~a-z~s; print

Replies are listed 'Best First'.
Re: Re: sort by date
by ysth (Canon) on Nov 30, 2003 at 20:38 UTC
    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