I am trying to open csv file in windows but I am getting the error "Bareword "file1" not allowed while "strict subs" in use at csvfile.pl line 4."
my $file_c = "file1.csv";
open(my $data, '<', $file_c) or die "Could not open $!\n ";
while (my $line = <$data>)
next if ($. == 1);
my @fields = split "," , $line;
my output show
Could not open No such file or directory
at csvfile.pl line 4.
Please let me know where I am doing the mistake, script is running on windows