None available.
BEGIN {
my $path = $ENV{HOME} . '/Plug-in';
if($ENV{GLANG_PLUGIN}){
$path = $ENV{GLANG_PLUGIN};
substr($path, -1, 1) = '' if(substr($path, -1, 1) eq '/');
}
unshift(@INC, $path);
no strict 'refs';
my $sub = sub {
my $dir = $File::Find::name;
my $dirpath = $dir;
if(-d $dir){
$dir =~ s/^$path$/\.\//g;
$dir =~ s/^$path\//\.\//g;
my $file;
opendir(DIR, $dirpath) || die "can't opendir $dir: $!";
$dir =~ s/^\.\//\.::/g;
$dir.="::" unless($dir=~/::$/);
$dir =~ s/\//::/g;
$dir =~ s/^\.:://g;
while(defined($file=readdir(DIR))){
if($file=~/(.+)\.pm$/){
next if ($file =~ /^\.\#/);
my $dirname = $dir . $1;
eval "use $dirname";
warn "$@" if ($@);
push(@EXPORT, @{"$dirname" . '::' . "EXPORT"});
}
}
closedir(DIR);
}
};
find($sub, "$path") if (-e $path);} |
No methods available.