- or download this
my $path;
BEGIN {
...
$path = "/www/domain/cgi-bin";
}
use lib $path;
- or download this
use lib do {
# Code that determines the path and returns it.
"/www/domain/cgi-bin"
};
- or download this
sub get_lib_path {
# Code that determines the path and returns it.
...
}
use lib get_lib_path();
- or download this
# Hardcoded
use lib "/www/domain/cgi-bin";