Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical

Re: Cannot call my installed module

by sundialsvc4 (Abbot)
on Feb 25, 2013 at 13:35 UTC ( #1020522=note: print w/replies, xml ) Need Help??

in reply to Cannot call my installed module

Here is a very short checklist that I use to initially diagnose such problems:

  1. Make sure that the module that you think you’re referring to really is installed, and where you think it is.   (Don’t assume.)
  2. Issue the command, “perl -V” (with an upper-case “V”) and look at the library search-list to be sure that the specified directory really is on it.   Remember that on a Unix system if you edit .bash_profile to modify the PERL5LIB environment variable, you must source .bash_profile to cause it to take effect, as the env command will subsequently confirm.
  3. Ensure that the package-name you are referring to has been brought into the program via use or require.   (See also: UNIVERSAL::require.)
  4. In this particular case, where the package-name is obtained by means of a variable or string, use print STDERR this_expression to, once again, show (don’t assume ...) what this string actually contains at runtime.
  5. Bear in mind the differences between where CPAN installs a package, as determined by its configuration, and where Perl at runtime looks for a package (see #2 above).   The two are not the same and must agree.   Otherwise, here is one of several ways that you will see that you can install a package but can’t call it.

HTH ...

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1020522]
[Corion]: marto: That would be cool :) There is no kids care at Perly events unfortunately, so it's not entirely family friendly
[Corion]: I think I should define a set of (say) five projects through which I rotate from time to time, just to prevent myself from being bored/annoyed by the problems they get stuck in ;)
[marto]: Corion, not bringing the kids would make it ideal :P
[marto]: a suggestion, have one project in the list that isn't programming/perl related
[Corion]: marto: Yeah, things are more parent-friendly the way they are ;))
[marto]: some hardware/makey thing
[Corion]: marto: Ah, I'm currently drifting to that again, over"painting" (well with Inkscape) one of my photographs and thinking about vectorizing some other images ...
[marto]: Corion, yes something 'artistic', so that or some music. Even combine some things, build a musical instrument :)
[Corion]: marto: Naah, I'm avoiding that rabbit hole ;) Sometimes I think of using Perl to create MIDI to generate music, or at least the harmonies to which I could jam, but then that would eat even more into available time ;-))

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (5)
As of 2017-07-27 07:45 GMT
Find Nodes?
    Voting Booth?
    I came, I saw, I ...

    Results (404 votes). Check out past polls.