in reply to TexT::CSV and getline

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.

Optimising for fewest key strokes only makes sense transmitting to Pluto or beyond

Replies are listed 'Best First'.
Re^2: TexT::CSV and getline
by BernieC (Pilgrim) on Nov 05, 2020 at 15:22 UTC
    Perfect --- in the docs {and with my bad eyes} I missed that a hashref was needed. THANKS!!