I'm trying to parse a CSV file using TEXT::CSV_XS. The following code runs fine on Windows:
use strict; use warnings; use Text::CSV_XS; my $csv = Text::CSV_XS->new ({auto_diag => 1, binary => 1 }); my $infile_name = "DeviceTrim.csv"; open my $CSV_INPUT, "<", $infile_name or die "$infile_name: $!"; my $row = $csv->getline ($CSV_INPUT);
But when I run it on Linux I get the message:
Can't call method "getline" on an undefined value at DeviceTrimGen.pl +line 7.
Any ideas?
In reply to CSV_XS issue by wassmp1
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |