home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.madoka.org
/
2014.12.ftp.madoka.org.tar
/
ftp.madoka.org
/
pub
/
plum
/
1.x
/
plum10b8.lzh
/
plum10b8
/
dynaload.plm
< prev
next >
Wrap
Text File
|
1997-06-25
|
705b
|
27 lines
package dynaload;
$_ = 'dynaload';
sub main_loop {
local($i, $pkg, $sub, *hash);
for ($i = 0; $i < scalar(@'username); $i++) {
foreach $module (&'property($i, 'module')) {
$modify{$module} = (stat($module))[9] unless $modify{$module};
next if $modify{$module} == (stat($module))[9];
$modify{$module} = (stat($module))[9];
$pkg = $'package{$module};
next if $pkg eq 'main';
delete $'package{$module};
$'modulelist = &'remove($'modulelist[$i], $pkg);
eval "*hash = *_$pkg;";
foreach $name (keys(%hash)) {
$sub = "${pkg}'$name";
next unless defined(&$sub);
undef &$sub;
}
&'import($i, $module);
}
}
}