In C:/perl I have
a.txt
b.txt
c.txt
d.txt
$VAR1 = 'a.txt';
$VAR1 = 'b.txt';
$VAR1 = 'c.txt';
$VAR1 = 'd.txt';
But i would like my file to be read in descending.
$VAR1 = 'd.txt';
$VAR1 = 'c.txt';
$VAR1 = 'b.txt';
$VAR1 = 'a.txt';
How to do it? is it related to the setting of operating system?
a.txt
b.txt
c.txt
d.txt
Code:
use File::Find;
$filedir='C:/perl';
find (sub {
local @ARGV = $_;
print Dumper $_;
}, $filedir);
$VAR1 = 'a.txt';
$VAR1 = 'b.txt';
$VAR1 = 'c.txt';
$VAR1 = 'd.txt';
But i would like my file to be read in descending.
$VAR1 = 'd.txt';
$VAR1 = 'c.txt';
$VAR1 = 'b.txt';
$VAR1 = 'a.txt';
How to do it? is it related to the setting of operating system?
Comment