Is there any way to set the perl library search path to the path that holds the perl script at compile-time? In other words, I'd like it so that I can keep my perl scripts and perl modules (.pm) in the same (arbitrary) subdirectory and have it work by just executing the script.
It would be something similar in intention to:
use lib File::Basename::dirname($0);
except that the previous line doesn't work because use lib is evaluated at compile-time.