Wikiposts
Search
Computer/Internet Issues & Troubleshooting Anyone with questions about the terribly complex world of computers or the internet should try here. NOT FOR REPORTING ISSUES WITH PPRuNe FORUMS! Please use the subforum "PPRuNe Problems or Queries."

Any 'Perlers' around?

Thread Tools
 
Search this Thread
 
Old 3rd May 2011, 20:20
  #1 (permalink)  
Per Ardua ad Astraeus
Thread Starter
 
Join Date: Mar 2000
Location: UK
Posts: 18,579
Likes: 0
Received 0 Likes on 0 Posts
Any 'Perlers' around?

Now I have my disk drives behaving, another query for the experts:

I'm a bit 'Newbie-ish' to Perl (used much older perl before), but have now installed 5.12.3 on Win XP SP3 and am working on an excel function.


The example 'a_simple_parser.pl' from Spreadsheet-ParseExcel-0.59\examples' produces 'cannot locate Spreadsheet/ParseExcel.pm 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!
BOAC is offline  
Old 3rd May 2011, 20:36
  #2 (permalink)  
 
Join Date: Aug 2002
Location: Earth
Posts: 3,663
Likes: 0
Received 0 Likes on 0 Posts
Have you tried reinstalling the module with CPAN ?

Something like cpan -fi Spreadsheet::ParseExcel::Simple

(changing module name as necessary for your needs)
mixture is offline  
Old 3rd May 2011, 22:20
  #3 (permalink)  
 
Join Date: Apr 2005
Location: Earth
Posts: 366
Likes: 0
Received 0 Likes on 0 Posts
Thread HERE that may give a clue.

Scroll down a toosh.
Spurlash2 is offline  
Old 4th May 2011, 07:57
  #4 (permalink)  
Per Ardua ad Astraeus
Thread Starter
 
Join Date: Mar 2000
Location: UK
Posts: 18,579
Likes: 0
Received 0 Likes on 0 Posts
Ta Spurlash - if you mean post 5 on the link, I have now installed the excel module via Cpan AND the original PPM and I still get the same message.

This is the first time I have used a 'module', as previous dabbles have been with home-made or 'ordinary' scripts with no module calls, so I am probably just screwing something up!
BOAC is offline  
Old 5th May 2011, 16:49
  #5 (permalink)  
 
Join Date: Mar 2003
Location: England
Posts: 286
Likes: 0
Received 0 Likes on 0 Posts
BOAC,

I have checked @INC and it contains C:/usr/site/lib and C:/usr/lib and the .pm is in the former location.
I have not used perl with windows, but could it be that the @INC paths use forward slashes rather than windows back slashes - ie:

C:\usr\site\lib

HTH

EG
ExGrunt is offline  
Old 5th May 2011, 21:43
  #6 (permalink)  
Per Ardua ad Astraeus
Thread Starter
 
Join Date: Mar 2000
Location: UK
Posts: 18,579
Likes: 0
Received 0 Likes on 0 Posts
EG - a good thought, but the 'warning' i get has forward slashes in it In fact, bizarrely, I have sorted the problem by adding 'use C:/Perl/site/lib' in the header, whereas before I was using 'use usr/site/lib' so it appears that the system has got 'usr' wrong - simple.
BOAC is offline  

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off



Contact Us - Archive - Advertising - Cookie Policy - Privacy Statement - Terms of Service

Copyright © 2024 MH Sub I, LLC dba Internet Brands. All rights reserved. Use of this site indicates your consent to the Terms of Use.