http://qs321.pair.com?node_id=11106994


in reply to Re^2: Perl script for the post processing of one CSV file
in thread Perl script for the post processing of one CSV file

Hi Superdoc ,

I cant use these subroutines "bom" and "kh" since I am using older version of perl. Can you help me out with the code without using these subroutines ?

Thanks Kshitij

  • Comment on Re^3: Perl script for the post processing of one CSV file

Replies are listed 'Best First'.
Re^4: Perl script for the post processing of one CSV file
by rjt (Curate) on Oct 03, 2019 at 08:07 UTC

    Those are arguments, not subroutines, and they are part of Text::CSV, not Perl itself. What version of Perl are you using (perl -v from a prompt), and what version of Text::CSV do you have installed? Find that out with perl -MText::CSV -e 'print Text::CSV->VERSION' again from a prompt. The latest is 2.00, released in May of this year.

    You can upgrade your version of Text::CSV using CPAN (and install Text::CSV_XS while you're at it!), and you will be able to use these attributes. Using CPAN

        Text::CSV 1.32 dates back to 2013. The current version is 2.00. I again suggest you upgrade Text::CSV. You can look at the link I sent you earlier if you are unsure how to use CPAN.

Re^4: Perl script for the post processing of one CSV file
by hippo (Bishop) on Oct 03, 2019 at 08:12 UTC
    since I am using older version of perl

    I have some great news for you. You can upgrade individual modules without upgrading the entire perl installation. However, if your perl is so old (which version?) why not take this opportunity to upgrade the entire system anyway?