mito has asked for the wisdom of the Perl Monks concerning the following question:
opendir(IMD, $directoryOfImages) or die "cannot open $directoryOfImage +s: $!"; @allPictures=<IMD>; @allPictures= grep { $_ ne '.' and $_ ne '..' } readdir IMD; { @allPictures = sort(@allPictures); } closedir IMD;
It reads the files by name. I'd like to know how to read all the files by creation date I am working on tripod.So don't recommend me modules please.
Thanks in advance
20031130 Edit by Corion: Added CODE tags, formatting
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: sort by date
by Abigail-II (Bishop) on Nov 30, 2003 at 17:23 UTC | |
|
Re: sort by date
by Limbic~Region (Chancellor) on Nov 30, 2003 at 17:27 UTC | |
|
•Re: sort by date
by merlyn (Sage) on Nov 30, 2003 at 17:57 UTC | |
by dpmott (Scribe) on Dec 01, 2003 at 05:22 UTC | |
|
Re: sort by date
by forrest (Beadle) on Nov 30, 2003 at 17:27 UTC | |
by Roger (Parson) on Nov 30, 2003 at 23:11 UTC | |
|
Re: sort by date
by jeffa (Bishop) on Nov 30, 2003 at 17:21 UTC | |
by skx (Parson) on Nov 30, 2003 at 18:21 UTC | |
|
Re: sort by date
by b10m (Vicar) on Nov 30, 2003 at 16:41 UTC | |
|
Re: sort by date
by Cody Pendant (Prior) on Nov 30, 2003 at 19:56 UTC | |
by ysth (Canon) on Nov 30, 2003 at 20:38 UTC |