Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to change @INC in Strawberry Perl?

How can I change @INC permanently, without changing my scripts, in Strawberry Perl?

I'm aware of -I, but don't want to invoke that switch every time.

like image 940
Tim Avatar asked Apr 27 '11 14:04

Tim


1 Answers

To prepend paths, set environment variable PERL5LIB to those paths.

Note: This will affect all installations of Perl you run when this is effect.

Howto: Right-click (My) Computer, Properties, Advanced, Environment Variables, (the top) New. You will probably have to restart already running consoles to get the change.

like image 128
ikegami Avatar answered Sep 17 '22 06:09

ikegami