View Single Post
Old April 24th, 2008, 8:20 AM   #3 (permalink)
toolh3
Registered User
Fresh Surpasser
 
Joined in Mar 2008
4 posts
Gave thanks: 0
Thanked 0 times
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.
toolh3 is offline   Reply With Quote