http://www.perlmonks.org?node_id=889675


in reply to adding library directories relative to $0

FindBin is a standard module that solves this problem. (sort of)

use FindBin qw($Bin); use lib "$Bin/../lib";

jeffa

L-LL-L--L-LL-L--L-LL-L--
-R--R-RR-R--R-RR-R--R-RR
B--B--B--B--B--B--B--B--
H---H---H---H---H---H---
(the triplet paradiddle with high-hat)