CSV file manipulation

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • sainiamit25
    New Member
    • Jul 2007
    • 40

    CSV file manipulation

    Hi All,

    I want to parse a csv using perl. My script is placed in /usr/local. I have got a running code from the internet but when i try to execute that code on my system, i get the following error:-

    Can't locate Text/CSV.pm in @INC (@INC contains: /usr/perl5/5.6.1/lib/sun4-solaris-64int /usr/perl5/5.6.1/lib /usr/perl5/site_perl/5.6.1/sun4-solaris-64int /usr/perl5/site_perl/5.6.1 /usr/perl5/site_perl /usr/perl5/vendor_perl/5.6.1/sun4-solaris-64int /usr/perl5/vendor_perl/5.6.1 /usr/perl5/vendor_perl .) at ./test.pl line 4.

    Looks like i am missing on something like importing a package. Can somebody help me out on this.

    Thanks in advance for your help

    Amit
  • KevinADC
    Recognized Expert Specialist
    • Jan 2007
    • 4092

    #2
    Originally posted by sainiamit25
    Hi All,

    I want to parse a csv using perl. My script is placed in /usr/local. I have got a running code from the internet but when i try to execute that code on my system, i get the following error:-

    Can't locate Text/CSV.pm in @INC (@INC contains: /usr/perl5/5.6.1/lib/sun4-solaris-64int /usr/perl5/5.6.1/lib /usr/perl5/site_perl/5.6.1/sun4-solaris-64int /usr/perl5/site_perl/5.6.1 /usr/perl5/site_perl /usr/perl5/vendor_perl/5.6.1/sun4-solaris-64int /usr/perl5/vendor_perl/5.6.1 /usr/perl5/vendor_perl .) at ./test.pl line 4.

    Looks like i am missing on something like importing a package. Can somebody help me out on this.

    Thanks in advance for your help

    Amit
    Hi Amit,

    You should start a new thread when you have a question.

    You need to install the missing modules. See http://www.cpan.org/modules/index.html for instructions.

    Kevin

    Comment

    • numberwhun
      Recognized Expert Moderator Specialist
      • May 2007
      • 3467

      #3
      Originally posted by KevinADC
      Hi Amit,

      You should start a new thread when you have a question.

      You need to install the missing modules. See http://www.cpan.org/modules/index.html for instructions.
      Actually, that person DID start a new thread, only 2 minutes before posting the same question to someone else's different question. (patience....pa tience)

      Here is the other post, which has already been replied to. ;-)

      Comment

      • KevinADC
        Recognized Expert Specialist
        • Jan 2007
        • 4092

        #4
        Originally posted by numberwhun
        Actually, that person DID start a new thread, only 2 minutes before posting the same question to someone else's different question. (patience....pa tience)

        Here is the other post, which has already been replied to. ;-)

        Ahh....... thanks Jeff.

        Comment

        • sainiamit25
          New Member
          • Jul 2007
          • 40

          #5
          Apologies ..apologies :-)

          It happened by mistake as i had opened 2/3 windows of teh forum at the same time and missed out on that.

          Regards,
          Amit

          Comment

          • miller
            Recognized Expert Top Contributor
            • Oct 2006
            • 1086

            #6
            Thread split from - http://www.thescripts. com/forum/thread646376.ht ml

            And now deleted

            - MODERATOR

            Comment

            Working...