[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [cobalt-users] Perl and lib-files
- Subject: Re: [cobalt-users] Perl and lib-files
- From: Bruce Timberlake <Bruce.Timberlake@xxxxxxx>
- Date: Thu Apr 11 04:32:18 2002
- List-id: Mailing list for users to share thoughts on Cobalt products. <cobalt-users.list.cobalt.com>
----- Original Message -----
From: Mikael Siirilä <mikael.siirila@xxxxxxxxx>
Date: Thursday, April 11, 2002 5:21 am
Subject: [cobalt-users] Perl and lib-files
> On Raq4: Can Perl scripts use lib-files that are located in the
> virtual site directories? What are these files that a user is
> asking about?
Yes, they just have to specify where to find them in each Perl script
which will need to use the local libraries:
use lib '/mypath/libdir/';
use MyModule;
"use lib" manipulates the special "@INC" variable in Perl to add extra
directories into Perl's search path. "use" or "require" statements
_after_ a "use lib" will find modules in the newly specified path(s).
--
Bruce Timberlake
Sun Cobalt Technology Engineer
Sun Microsystems, Inc.