The Text::CSV documentation says in part:
new
(Class method) Returns a new instance of class Text::CSV. The attributes are described by the (optional) hash ref \%attr
So your $csv construction line should be:
my $csv = Text::CSV->new({binary => 1}) ;
Note the currly braces {} instead of the parenthesis () as the argument to new.
In reply to Re: TexT::CSV and getline
by GrandFather
in thread TexT::CSV and getline
by BernieC
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |