PL/Perl: when to set @INC?

  • Follow



This is a question about PL/Perl, PostgreSQL's Perl procedural
language.

I have a database where I want to make heavy use of PL/Perl stored
procedures.  Also, I'd like these procedures to be able to load
Perl modules that reside outside the paths in the default @INC, so
I'd like to modify @INC appropriately as soon as possible after
the PostgreSQL server is started.

Does anyone know how to do this?

TIA!

Kynn

-- 
NOTE: In my address everything before the first period is backwards;
and the last period, and everything after it, should be discarded.
0
Reply kj 2/23/2008 10:12:24 PM

kj <socyl@987jk.com.invalid> wrote:

> I'd like these procedures to be able to load
> Perl modules that reside outside the paths in the default @INC, so
> I'd like to modify @INC appropriately as soon as possible after
> the PostgreSQL server is started.
>
> Does anyone know how to do this?


    perldoc -q INC

        How do I add a directory to my include path (@INC) at runtime?


-- 
Tad McClellan
email: perl -le "print scalar reverse qq/moc.noitatibaher\100cmdat/"
0
Reply Tad 2/24/2008 3:50:39 AM


In <slrnfs1qcf.hno.tadmc@tadmc30.sbcglobal.net> Tad J McClellan <tadmc@seesig.invalid> writes:

>kj <socyl@987jk.com.invalid> wrote:

>> I'd like these procedures to be able to load
>> Perl modules that reside outside the paths in the default @INC, so
>> I'd like to modify @INC appropriately as soon as possible after
>> the PostgreSQL server is started.
>>
>> Does anyone know how to do this?


>    perldoc -q INC

>        How do I add a directory to my include path (@INC) at runtime?

Not what I was trying to find out, but maybe this is not the right
forum for my question...  My apologies.

kynn
-- 
NOTE: In my address everything before the first period is backwards;
and the last period, and everything after it, should be discarded.
0
Reply kj 2/24/2008 5:08:53 PM

2 Replies
47 Views

(page loaded in 0.136 seconds)

Similiar Articles:













7/25/2012 1:09:02 PM


Reply: