use lib 'dir';
lib
is part of Perl sinceperl 5.00307
.- It simplifies the manipulation of
@INC
.
file: examples/009_use_lib.pl 1: use lib 'splap'; 2: use PushInc; 3: print "ok\n";
~/examples$ perl 009_use_lib.pl loading... ok
use lib
ist the recommended way to alter @INC
.