I'm using this code section to set the include path with my home directory:
Code:
my $homedir = (getpwuid($>))[7];
my $n_inc = scalar @INC;
for (my $i = 0; $i < $n_inc; $i++ ) {
if (-d $homedir . '/perl' . $INC[$i]) {
unshift(@INC,$homedir . '/perl' . $INC[$i]);
$n_inc++;
$i++;
}
}
From following that code, it just takes my user id and concatenates '/perl' to it. That directory exists but it has nothing in it (at least nothing that I can see). I installed HTML::TreeBuilder through cpanel without any errors so I assumed it was put in the correct directories.