CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
Search Posts SEARCH
Who's Online WHO'S
Log in LOG

Home: Perl Programming Help: Beginner:


New User

May 4, 2011, 9:26 AM

Post #1 of 4 (1465 views)
@INC/library Can't Post

Complete newbie, a few home-made simple scripts before with an earlier Perl. I now have Active State 5.12.3 on Win XP SP3 and am trying to use a module (for the first time) for an Excel function.

Installed Spreadsheet::ParseExcel via PPM, but when I run the example '' from Spreadsheet-ParseExcel-0.59\examples' I get 'cannot locate Spreadsheet/ in @INC' etc etc

I have checked @INC and it contains C:/usr/site/lib and C:/usr/lib and the .pm is in the former location. PPM shows 'no missing packages to install'. I have also used 'Use lib etc etc' with no success.

Bit Stuck! Be gentle!


May 4, 2011, 12:27 PM

Post #2 of 4 (1460 views)
Re: [mjp] @INC/library [In reply to] Can't Post

Try restarting your command prompt so that paths are updated if this is a new install.

I wish I could quickly suggest a solution for your problem, but my main thought is that I'd recommend that you use Strawberry Perl instead of ActivePerl on windows. The fact that strawberry perl uses cpan instead of the ppm is a major selling point for me, although I have used ActiveState in the past.

To install packages on Strawberry perl, just do the following:

cpan -i Spreadsheet::ParseExcel

- Miller

(This post was edited by miller on May 4, 2011, 12:29 PM)

New User

May 4, 2011, 12:50 PM

Post #3 of 4 (1457 views)
Re: [miller] @INC/library [In reply to] Can't Post

Thanks, Miller - several reboots have passed and the problem still lives. As I said @INC appears correct and the pm is in the right place. I have Googled myself blind looking for answers.


May 4, 2011, 2:00 PM

Post #4 of 4 (1451 views)
Re: [mjp] @INC/library [In reply to] Can't Post

Trying installing and testing with a more basic module like List::MoreUtils or File::Slurp.

Spreadsheet::ParseExcel has a lot of dependencies and so might not have installed correctly. If you can get the other ones to work, then you'll at least have isolated your installation procedure with ppm.

- Miller


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives