diff options
author | Andinus <andinus@nand.sh> | 2020-06-10 17:44:45 +0530 |
---|---|---|
committer | Andinus <andinus@nand.sh> | 2020-06-10 17:44:45 +0530 |
commit | d3924ce89f0d0ebf54fe7c40d70b22f028e780db (patch) | |
tree | 66bb1b0da7a36dafd2e1962f70d2bc38b06424de | |
parent | 94bdc8e40d765ad087753edfa48bb061b087a761 (diff) | |
download | ara-d3924ce89f0d0ebf54fe7c40d70b22f028e780db.tar.gz |
Use ->ctime instead of accessing the array directly
-rwxr-xr-x | ara.pl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ara.pl b/ara.pl index 93656a4..cabb69f 100755 --- a/ara.pl +++ b/ara.pl @@ -66,7 +66,7 @@ my $file_ctime; # If $file exists then get mtime. if ( -e $file ) { my $file_stat = path($file)->stat; - $file_ctime = Time::Moment->from_epoch( $file_stat->[10] ); + $file_ctime = Time::Moment->from_epoch( $file_stat->ctime ); } else { warn "File '$file' doesn't exist\nFetching latest...\n" if $use_local_file; |