my $libpath; BEGIN { $libpath = "/foo/bar"; } use lib $libpath;