[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: [MacPerl] add a library to @INC



At 15:57 -0400 7/12/99, Richard Gordon wrote:
> At 09:33 -0700 7/12/1999, jean-Francois Jobidon wrote:
>>Hi
>>I'd like to add a new library to the special variable @INC.
>>
>>I use :
>>push (@INC, "Macintosh HD:WWW:projectX:scripts:");
>>
>>but how can I save this new variable ?
>
> Isn't this what the menu command in MacPerl
> Edit:Preferences:Libraries is for? It seems to me that you could just
> add the path there and be done with it unless you are trying to make
> the script portable.

Yup.  You can "save" the addition by adding it permanently to the @INC
variable. Or you can do it dynamically as you have done.

- V.
-- --
       |\      _,,,---,,_       Vicki Brown <vlb@cfcl.com>
 ZZZzz /,`.-'`'    -.  ;-;;,_   Journeyman Sourceror: Scripts & Philtres
      |,4-  ) )-,_. ,\ (  `'-'  P.O. Box 1269  San Bruno  CA  94066
     '---''(_/--'  `-'\_) http://www.cfcl.com/~vlb  http://www.macperl.com

===== Want to unsubscribe from this list?
===== Send mail with body "unsubscribe" to macperl-request@macperl.org