Thnaks Miller,
I am able to get the time of two files.
But I am not able to compare the times.
User Profile
Collapse
-
File Time comparison
Hi,
i have two files which are created at x and y time (date,Day,time) .
I want to compare the time of each file and pick the latest file.
How can I do that?
thanks in advance.
Sada -
Hi Kevin,
what is "date of file"?
---->The date and the time when the file was created.
Regards,
Sadanand...Leave a comment:
-
Sorting files
Can anyone tell me how to sort the list of files on the basis of creation time and date of file? -
Pattern Matching
I have a code which displays the list of files avaialble in a particular folder.
Example:-
I have 123,123_SIM,456 _SIM,678_SIM,89 0 files in the following folder.
C:\perl_practic e\Folder
Code:-
[CODE=perl]
use Data::Dumper;
#use strict;
#use warnings;
use File::Find;
use File::Stat;
use Time::Local;
my $test_data1='C: \perl_practice\ Folder';... -
File Program
Hi,
I am a beginer to perl progmig.
When I run the following program..
[CODE=perl]
use File::Find;
use File::Stat;
use Time::Local;
my $test_data1='X path'; # Some path
my @cbr = $test_data1;
foreach $cbr(@cbr) {
opendir (DIR,$cbr);
@files = readdir(DIR);
closedir(DIR);
foreach $file (sort @files) {
print("$file...
No activity results to display
Show More
Leave a comment: