#
$VERSION = do { my @r =(q$Revision$ =~ /\d+/g); sprintf "%d."."%02d" x $#r, @r };
-my $O_BINARY = eval "O_BINARY";
+my $O_BINARY = eval 'local $SIG{__DIE__}; O_BINARY';
$O_BINARY = 0 if ($@);
### sub new ####################################################################
local $\;
unless (-d $self -> threaddir($param)) {
- mkdir $self->threaddir($param) or return;
+ mkdir $self->threaddir($param), 0777 or return;
}
- sysopen (
- FILE,
+ sysopen (FILE,
$self->cachefile($param),
O_WRONLY | O_CREAT | O_TRUNC
) or return;
}
else {
unless (-d $self->threaddir($param)) {
- mkdir $self->threaddir($param) or return;
+ mkdir $self->threaddir($param), 0777 or return;
}
my $filename = $self->cachefile($param);