Hi,
ich möchte in meiner MEthode, die neueste Datei einer Liste ermitteln. Dazu wollte ich mittels (stat($file))[9] das modify Datum erhalten. Jedoch liefert mir die Methode gar nichts. Weiss jemand woran es liegt, hier mein code
foreach my $file(@files){
if (-e $file){
my @fileProps = stat($file);
&log_this($customer,$ordername,"filestamp of file $file is: " . $fileProps[9] );
}
}
Output:
2011_12_28_14_23_40:filestamp of file f:\TEST.10013907.ps is:
2011_12_28_14_23_40:filestamp of file f:\TEST.10013908.ps is:
2011_12_28_14_23_40:filestamp of file f:\TEST.10013909.ps is:
2011_12_28_14_23_40:filestamp of file f:\TEST.10013910.ps is:
modedit Editiert von GwenDragon: Titel gekürzt
Last edited: 2011-12-28 14:48:38 +0100 (CET)