This is my code to handle file. I am having the file in my drive.
But I always getting file not found error. Do I need to give correct path ? Or Do the code will create a new file here ?
Why am I getting this error ?
Am I store the file in specific path ?
Do I missed anything to mention or Do I missed anything in the code ?
#open FH , ">>JEEVA.csv" or die "File not found"; #print FH $res1; #close FH;
$!variable, like so:or die "Cannot open JEEVA.csv for appending: $!";And yes, the file should be created if it does not exist.