set a default for @INC

Ask a Question related to PERL Miscellaneous, Design and Development.

  1. #1

    Default set a default for @INC

    Hello
    can I set a list of default locations to always be in the @INC so that I
    don't have to add the line use lib "location" in my programs?
    if so, then how?

    thanks

    Sam Guest

  2. Similar Questions and Discussions

    1. default '0'
      hello I try to create a table with this statment CREATE TABLE referants ( id int(10) DEFAULT '0' NOT NULL auto_increment, referant char(200) NOT...
    2. CF 6.1 - default-err.log
      On our CF 6.1 server, the \ColdFusionMX\runtime\logs\default-err.log is huge. Is it safe to delete this file, or is there a way to limit the size of...
    3. question about the default.mxml and Default.mxml
      tomcat5.0+flex1.5 when i use the file name "default.mxml" , flex report : 1 Error found. Error D:\Project\flexsample\default.mxml 'default' is...
    4. Setting index.cfm as the default document??? Yes, it hasbeen added as a default document in IIS.
      I am having trouble getting IIS to recognize the default index.cfm document, and I was wondering if anyone could give me some guidance. I created a...
    5. [PHP-DEV] Get value if set, or default
      Why not augment the userland function to the following: function getd( &$sourceArray, $key, $default=null ) { if( isset( $sourceArray ) ) {...
  3. #2

    Default Re: set a default for @INC

    In article <3F6B31E3.2070803@austarmetro.com.au>, Sam wrote:
    > Hello
    > can I set a list of default locations to always be in the @INC so that I
    > don't have to add the line use lib "location" in my programs?
    > if so, then how?
    Set the PERLLIB or PERL5LIB environment variables to the
    ':'-separated list of directories you want to use. PERL5LIB
    overrules PERLLIB. This is assuming a Unix-type system.


    --
    Andreas Kähäri
    Andreas Kahari Guest

  4. #3

    Default Re: set a default for @INC

    Sam <samj@austarmetro.com.au> wrote:
    > can I set a list of default locations to always be in the @INC
    > so that I don't have to add the line use lib "location" in my
    > programs?
    Check the FAQ:

    $ perldoc -q runtime

    You can also reconfigure perl defining PERL_OTHERLIBDIRS.

    --
    Steve
    Steve Grazzini Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139