Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: Can't locate define.pm

by marto (Chancellor)
on Mar 07, 2012 at 16:22 UTC ( #958319=note: print w/ replies, xml ) Need Help??


in reply to Can't locate define.pm

Your first problem:

use Spreadsheet::Parseexcel;

Should be:

use Spreadsheet::ParseExcel;

This is obviously just a typo in your post (hint, copy and paste what your actual code). Secondly, define is an old module you probably don't have installed, it's not core. Thirdly, what is MaxRow, it's only mentioned once in your code:

foreach(my $i=0; $i {MaxRow}; $i++) {

Update: Ignore the part I struck out, that's not accurate.


Comment on Re: Can't locate define.pm
Download Code
Re^2: Can't locate define.pm
by jaldama (Acolyte) on Mar 07, 2012 at 16:46 UTC
    Got it, thanks a lot everyone
Re^2: Can't locate define.pm
by bart (Canon) on Mar 07, 2012 at 21:23 UTC
    use Spreadsheet::Parseexcel;
    Should be:
    use Spreadsheet::ParseExcel;
    I'm not sure what you mean, but the proper capitalization is indeed Spreadsheet::ParseExcel. On case-insensitve filesystems and in case the module doesn't export anything (like, apparently this module) that would hardly seem to matter, but it is a proper habit to get into.

      bart, I scored this out because I found this worked when I tried it. I wanted to do some further digging, which I didn't get round to yesterday due to being very busy. I rarely code on Windows and was surprised this worked, as I'm used to the 'case counts' mentality. While I stand by this mentality (as you rightly say, it's a good habit to get into) I wanted to take the time to investigate if I'd done anything wrong in my test, or if perl as actually working as I expected on my windows laptop. Thanks.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://958319]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (14)
As of 2014-08-22 18:44 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (163 votes), past polls