Caleb7816 has asked for the wisdom of the Perl Monks concerning the following question:
Greeting all, This is my first post as I'm new to Perl. Was wondering why I'm receiving a "No such file or directory". Thank you.
$file = "New Text Document.txt"; open (FILE, $file) or die "$!\n"; $epoch_timestamp = (stat(FILE))[9]; $timestamp = localtime($epoch_timestamp); $size = (stat(FILE))[7]; print "$file\t$size bytes\tModified: $timestamp\n";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: No such file or directory
by Corion (Patriarch) on Sep 30, 2010 at 21:35 UTC | |
|
Re: No such file or directory
by toolic (Bishop) on Sep 30, 2010 at 21:35 UTC | |
|
Re: No such file or directory
by rowdog (Curate) on Sep 30, 2010 at 22:44 UTC | |
by Anonymous Monk on Sep 30, 2010 at 23:16 UTC |