Re: where to look for modules?

2003-12-21 Thread Owen
On Sun, 21 Dec 2003 13:49:59 -0600
christopher j bottaro <[EMAIL PROTECTED]> wrote:

> On Saturday 20 December 2003 05:05 am, Owen wrote:
> > I think the easiest for you would be to;
> >
> > use Modules;# as found in /usr/lib/perl5/5.8.0/
> >
> > use lib '/home/cjb/perlmodules';   #followed by
> > use MyModule;   #and/or any other module you have there
> 
> great, that worked perfectly...=)  i'm having a hard time finding 
> documentation for "use lib".  i looked at "use" in perlfunc and i also looked 
> at perlmodlib.


Like so many others, accessing information out of perldoc is still a bit of mystery to 
me. However in this case, something popped up with

perldoc  -q path

which might be a start


-- 
Owen


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
 




RE: where to look for modules?

2003-12-21 Thread NYIMI Jose (BMB)
Just type
perldoc lib

HTH,

José.
-Original Message-
From: christopher j bottaro [mailto:[EMAIL PROTECTED] 
Sent: Sunday, December 21, 2003 8:50 PM
To: [EMAIL PROTECTED]
Subject: Re: where to look for modules?


On Saturday 20 December 2003 05:05 am, Owen wrote:
> I think the easiest for you would be to;
>
> use Modules;  # as found in /usr/lib/perl5/5.8.0/
>
> use lib '/home/cjb/perlmodules';   #followed by
> use MyModule; #and/or any other module you have there

great, that worked perfectly...=)  i'm having a hard time finding 
documentation for "use lib".  i looked at "use" in perlfunc and i also looked 
at perlmodlib.

thanks,
-- christopher

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> 
<http://learn.perl.org/first-response>




 DISCLAIMER 

"This e-mail and any attachment thereto may contain information which is confidential 
and/or protected by intellectual property rights and are intended for the sole use of 
the recipient(s) named above. 
Any use of the information contained herein (including, but not limited to, total or 
partial reproduction, communication or distribution in any form) by other persons than 
the designated recipient(s) is prohibited. 
If you have received this e-mail in error, please notify the sender either by 
telephone or by e-mail and delete the material from any computer".

Thank you for your cooperation.

For further information about Proximus mobile phone services please see our website at 
http://www.proximus.be or refer to any Proximus agent.


--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>




Re: where to look for modules?

2003-12-21 Thread christopher j bottaro
On Saturday 20 December 2003 05:05 am, Owen wrote:
> I think the easiest for you would be to;
>
> use Modules;  # as found in /usr/lib/perl5/5.8.0/
>
> use lib '/home/cjb/perlmodules';   #followed by
> use MyModule; #and/or any other module you have there

great, that worked perfectly...=)  i'm having a hard time finding 
documentation for "use lib".  i looked at "use" in perlfunc and i also looked 
at perlmodlib.

thanks,
-- christopher

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
 




Re: where to look for modules?

2003-12-20 Thread drieux
On Dec 20, 2003, at 2:33 AM, christopher j bottaro wrote:

on my system, perl looks for modules in /usr/lib/perl5/5.8.0/.  how 
can i
specify an additional path to look for modules in?  say for
instance, /home/cjb/perlmodules/ in addition to the aforementioned 
path.
first off, if I may recommend it, you might
want to be a bit more 'old school' about this.
My personal OCD is to lay things out

$HOME/bin # where my apps go
$HOME/lib # where lib things go
perl5/ # the perl stuff
java/  # jave stuff...
/ # where the stuff stuff goes
$HOME/include # where headers are installed
$HOME/etc # where config foo goes
$HOME/proj# where we do projects
What this will allow you do to is install in your
home directories the whole mess of marvels - including
those 'lib_foo.[so|dll|a|dynlib|' which
will be required to build certain perl modules.
But the big win in this game is that once you like
your code well enough to share it with friends, then
you can advertise it, because it will be using
#!/usr/bin/perl
use strict;
use warnings;
use FindBin qw($RealBin);
use lib "$RealBin/../lib/perl5";
# use lib "$ENV{HOME}/lib/perl5";
# now the module call out list is here
use myCool::New::Module;
# rest of the code here...
hence whether they opt to pre-pend your personal
bin directory, or put in a symbolic link into their
personal bin directory pointing at your code, the
perl code will do the right thing.
What you might want is to use the

	PERL5LIB

environmental variable - may I recommend that
you have an alternative profile that you source
when doing that type of development, so that
when you want to see that it is all self contained
in the perl script you run the code without the
environmental variable.
But personally I would bug the system administrator
with why having the Foo::Bar module is just something
that they can not live without - hence get them to
install it in the classical CPAN style way into
the site_perl or vendor_perl space.
{ trust me, I have that argument with myself regularly. }

ciao
drieux
---

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
 



Re: where to look for modules?

2003-12-20 Thread Owen
On Sat, 20 Dec 2003 04:33:24 -0600
christopher j bottaro <[EMAIL PROTECTED]> wrote:

> on my system, perl looks for modules in /usr/lib/perl5/5.8.0/.  how can i 
> specify an additional path to look for modules in?  say for 
> instance, /home/cjb/perlmodules/ in addition to the aforementioned path.


I think the easiest for you would be to;

use Modules;# as found in /usr/lib/perl5/5.8.0/

use lib '/home/cjb/perlmodules';   #followed by
use MyModule;   #and/or any other module you have there


-- 
Owen


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
 




Re: where to look for modules?

2003-12-20 Thread Randy W. Sims
On 12/20/2003 5:33 AM, christopher j bottaro wrote:

on my system, perl looks for modules in /usr/lib/perl5/5.8.0/.  how can i 
specify an additional path to look for modules in?  say for 
instance, /home/cjb/perlmodules/ in addition to the aforementioned path.
set the PERL5LIB environment variable.

Randy.

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]