PL/Perl: when to set @INC?

Discussion in 'Perl Misc' started by kj, Feb 23, 2008.

  1. kj

    kj Guest

    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.
     
    kj, Feb 23, 2008
    #1
    1. Advertising

  2. kj <> 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/"
     
    Tad J McClellan, Feb 24, 2008
    #2
    1. Advertising

  3. kj

    kj Guest

    In <> Tad J McClellan <> writes:

    >kj <> 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.
     
    kj, Feb 24, 2008
    #3
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Tony
    Replies:
    1
    Views:
    178
    Tony Curtis
    Aug 20, 2003
  2. Gary Hartl

    Perl can't locate a .pm in @INC

    Gary Hartl, Nov 4, 2003, in forum: Perl Misc
    Replies:
    7
    Views:
    197
    Gary Hartl
    Nov 5, 2003
  3. Horst Fickenscher

    Setting up initial @INC when configuring Perl 5.8.4

    Horst Fickenscher, Apr 27, 2004, in forum: Perl Misc
    Replies:
    0
    Views:
    111
    Horst Fickenscher
    Apr 27, 2004
  4. kellinorman
    Replies:
    7
    Views:
    131
    Bart Lateur
    Apr 19, 2006
  5. Replies:
    3
    Views:
    1,758
Loading...

Share This Page