Any 'Perlers' around?
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!
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!
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!
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!
Join Date: Mar 2003
Location: England
Posts: 286
Likes: 0
Received 0 Likes
on
0 Posts
BOAC,
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
I have checked @INC and it contains C:/usr/site/lib and C:/usr/lib and the .pm is in the former location.
C:\usr\site\lib
HTH
EG
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.