jazzlover has asked for the wisdom of the Perl Monks concerning the following question:

Hello all. Just want to say thankyou for adding me to your site and totally understand that this site will either make or break me. I wrote a few days ago saying that ive applied for a new job that will want me to setup a dataprocessing department. When i say i am setting it up i mean literaslly it will be me given a clean machine and the "get going" about it. They literaslly dont have nothing. I have already lost sleep cause i am so nervous about failing cause the opptunity is brilliant. Six hours looking for stuff and just getting no where. I have a "perl for dummies attitude " cause ive always worked with people and where i get stuck just ask. I dont have that now. So here i am trying to set it up as a test. Im already having problems because i can even get perl to download on the system. Ive created the csv file with four records. I tried to run a program and it told me this error :

cant locate Text/CSV.pm in @INC (you may need to install the Text::CSV module) (@INC contains: C:/perl/site/lib.) at scripts/csv2fix.prl line 4. BEGIN failed--compilation aborted at scripts/csv2fix.prl line 4. As you can tell aint got a clue. I downloaded the text::csv module but not sure where to put in it the directies listed. Im literally stepping forwardone step then 6 backwards..HELP HELP HELP!!!

i think with me and all me questions i will be a regualar everyday stress ball for you all now. if i get this job i will buy you all a beer some how. waiting by the computer like a hungry hound...mr newbie jazzlover. (i have the other questions already prepared but im hoping you all dont throw me out for asking to much). Please be gentle and talk me through.

Replies are listed 'Best First'.
Re: Can't locate Text/CSV.pm in @INC
by NetWallah (Canon) on Nov 01, 2015 at 19:13 UTC
    Your @INC path of "C:/perl/site/lib" indicates you are on a Windows OS, and have most likely installed ActiveState perl.

    THe Activestate install includes a PPM GUI, which you can use to install modules.

    Failing that, try this from the command line:

    ppm install Text::CSV
    If that fails, try the cpan method mentioned above.

    We could help you better if we did not have to guess on the OS, and Perl flavour and version.

            “The sources of quotes found on the internet are not always reliable.” — Abraham Lincoln.3; cf.

Re: Can't locate Text/CSV.pm in @INC
by Corion (Patriarch) on Nov 01, 2015 at 17:15 UTC

    Perl's error messages are usually quite good. The error message is:

    You may need to install the Text::CSV module

    The traditional way of installing modules is through the cpan tool:

    cpan Text::CSV

    This will download, configure and install the Text::CSV module.

    So, what did you try to install the module?

Re: Can't locate Text/CSV.pm in @INC
by RichardK (Parson) on Nov 01, 2015 at 19:18 UTC

    If you're running a Linux distro you can install lots of modules direct from their repo using the software management tool. Then it will be automatically kept up to date.

Installing a module
by hippo (Archbishop) on Nov 02, 2015 at 09:49 UTC
    I downloaded the text::csv module but not sure where to put in it the directies listed.

    The idea behind modules from CPAN is that they should be installed by following a procedure rather than manually placing the files into a tree somewhere (some may require compilation, others will have dependencies, most will have a test suite, etc.). Have a read of the articles listed in the Installing Modules area of the tutorials section. You can come back here with any follow-up questions.

Re: Can't locate Text/CSV.pm in @INC
by flexvault (Monsignor) on Nov 01, 2015 at 23:54 UTC

    Hello jazzlover,

      ...When i say i am setting it up i mean literaslly it will be me given a clean machine and the "get going" about it. They literaslly dont have nothing...

    Just think how wonderful your new opportunity is that you don't have thousands of lines of buggy, poorly written Perl code to maintain. Your are lucky for this opportunity and PM will help you thrive!

    Regards...Ed

    "Well done is better than well said." - Benjamin Franklin