pelos has asked for the wisdom of the Perl Monks concerning the following question:
I am trying to get the time of the file or the size or any of the attributes of the file.
after reading several examples and replicating the code I get a blank line =( been new to perl I am assuming that might be something I am doing, I am using active perl in windows 7
doesn't matter what 0-13 stat I ask. but if I print the variable I get no [] I getuse File::stat; $mtime = (stat("C:/PC_Files/Dropbox/Beta/test.txt")); print $mtime[5];
thanks for the tips.File::stat=ARRAY(0x3585c0)
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: stat a file
by moritz (Cardinal) on May 04, 2013 at 05:50 UTC | |
by pelos (Initiate) on May 04, 2013 at 06:22 UTC | |
by afoken (Chancellor) on May 04, 2013 at 09:30 UTC |
Back to
Seekers of Perl Wisdom