SPUG: loading a module

Jacinta Richardson jarich at perltraining.com.au
Wed Aug 10 19:10:08 PDT 2005


Medrano-Zaldivar, L E wrote:
> Ryan,
> 
> I installed the module using perl -M'CPAN' -e shell option. I didn't "make
> install". what other options do I have?

Find out where the module has been put.  If it appears to be in one of the
directories included in @INC (listed in your original email) see whether the
actual module got put there or if you've got an empty directory.

If it's been put somewhere else, perhaps you didn't have permissions to write to
the system directories, then add that directory to @INC at runtime.

This can be done via:

    #!/usr/bin/perl -I/path/to/my/perl/directories

or
    #!/usr/bin/perl
    use strict;  # etc
    use lib "/path/to/my/perl/directories/";
    use Net::Blogger;

or on the command line:

    perl -I/path/to/my/perl/directories some_blogging_prog.pl

All the best,

	Jacinta

-- 
   ("`-''-/").___..--''"`-._          |  Jacinta Richardson         |
    `6_ 6  )   `-.  (     ).`-.__.`)  |  Perl Training Australia    |
    (_Y_.)'  ._   )  `._ `. ``-..-'   |      +61 3 9354 6001        |
  _..`--'_..-_/  /--'_.' ,'           | contact at perltraining.com.au |
 (il),-''  (li),'  ((!.-'             |   www.perltraining.com.au   |




More information about the spug-list mailing list