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";
In reply to No such file or directory by Caleb7816
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |