List Info

Thread: Perl modules usage&path




Perl modules usage&path
user name
2006-12-29 15:55:46
>>>>> "Moron" == Moron Moroncic
<moroncicyahoo.com> writes:

Moron> Is there a way to use use() with absolute path in
conjuction ? For
Moron> example,have an old DBI modules installed in
system directories (like
Moron> : /usr/lib/perl5/5.8.8  or so),but would like to
use the same module
Moron> from another directory (like : /tmp/module/DBI.pm)
? 

Add a "use lib" before your other use:

use lib "/tmp/module";
use DBI;

"perldoc lib" will give you details.

-- 
Randal L. Schwartz - Stonehenge Consulting Services, Inc. -
+1 503 777 0095
<merlynstonehenge.com> <URL:http://www.ston
ehenge.com/merlyn/>
Perl/Unix/security consulting, Technical writing, Comedy,
etc. etc.
See PerlTraining.Stonehenge.com for onsite and
open-enrollment Perl training!


Unsubscribing info is here: h
ttp://help.yahoo.com/help/us/groups/groups-32.html 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://g
roups.yahoo.com/group/perl-beginner/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http
://groups.yahoo.com/group/perl-beginner/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:perl-beginner-digest@yahoogroups.com 
    mailto:perl-beginner-fullfeatured@yahoogroups.com

<*> To unsubscribe from this group, send an email to:
    perl-beginner-unsubscribe@yahoogroups.com

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.c
om/info/terms/
 
[1]

about | contact  Other archives ( Real Estate discussion Medical topics )