I got what I wanted.my $jroot=""; foreach my $a (keys %INC) {if ($INC{$a}=~/(.*)jinit.pm/){$jroot=$1}} die "I cannot find datadirectory\n" if ($jroot eq "");
In reply to Re^3: finding installed module directory
by alexxx
in thread finding installed module directory
by alexxx
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |