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
/
autoload.plm
< prev
next >
Wrap
Text File
|
1997-06-25
|
577b
|
26 lines
package autoload;
$_ = 'autoload';
sub main_loop {
local($file, $user, $userkey, $i);
for ($i = 0; $i < scalar(@'username); $i++) {
$user = $'username[$i];
if ($user) {
$file = "$'PROPERTY-$user";
} else {
$file = $'PROPERTY;
}
$modify[$i] = (stat($file))[9] unless $modify[$i];
next if $modify[$i] == (stat($file))[9];
$modify[$i] = (stat($file))[9];
$userkey = "$user$;";
foreach $key (keys(%'property)) {
next unless index($key, $userkey) == 0;
delete $'property{$key}
}
&'load($user, $file);
}
}