C
Cody Hess
I want my script to create new files when opening a filehandle to a file
that doesn't exist.
open FILE, "> new_file.dat" or die "Failed: $!";
I believe this should happen automatically, but I get the error
Failed: No such file or directory at ./write_file_experiment.pl line 3.
Is there something wrong with my filehandle? Is there another way to
create a new file if it doesn't already exist?
that doesn't exist.
open FILE, "> new_file.dat" or die "Failed: $!";
I believe this should happen automatically, but I get the error
Failed: No such file or directory at ./write_file_experiment.pl line 3.
Is there something wrong with my filehandle? Is there another way to
create a new file if it doesn't already exist?