T
thierry.torret
I use a old Perl script using Dirhandle but the sort is different on
Windows and on Linux
$dh = new DirHandle($test) || return;
while ($OneFile = $dh->read()) {
In Windows the directory and files are sorted by name : it is OK
but on Linux there are sorted in order of directory
creation/modification date but we want it by name.
Is there any option to use in Dirhandle new or read to sort by named in
all system ?
I cannot modify too much the script therefore need to keep
while ($OneFile = $dh->read()) method
and not replace it by an array of directory name.
Windows and on Linux
$dh = new DirHandle($test) || return;
while ($OneFile = $dh->read()) {
In Windows the directory and files are sorted by name : it is OK
but on Linux there are sorted in order of directory
creation/modification date but we want it by name.
Is there any option to use in Dirhandle new or read to sort by named in
all system ?
I cannot modify too much the script therefore need to keep
while ($OneFile = $dh->read()) method
and not replace it by an array of directory name.