use strict; use warnings; use lib "/home/neversaint/MyPerl/src"; use MYPACKAGE; #### ~/MyPerl/src $ perl -c src/mycode.pl # gives Can't locate MYPACKAGE.pm in @INC (@INC contains: home/neversaint/MyPerl/src /home/neversaint/lib/perl5/site_perl/5.8.5/i386-linux-thread-multi/5.8.5/i386-linux-thread-multi #### # plain header nothing here... # straight go to the functions.... sub some_func { # do sth; return $soth } 1;