I'm not sure about other OSes but Linux requires you to escape spaces in the file name.
my $file = "New\ Text\ Document.txt";
Update: I stand corrected, I'm not sure what I was doing when I reproduced the error but I was wrong in my conclusion. Thanks to Anon for catching my error.
In reply to Re: No such file or directory
by rowdog
in thread No such file or directory
by Caleb7816
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |