in reply to Re: dbmopen - if db file do this else do that
in thread dbmopen - if db file do this else do that
Sorry for the confusion. Apparently, I was smoking something at the moment. ;)If the database does not exist, it is created with protection specified by MASK (as modified by the "umask").
--perlplexersub validateSession{ my ($session, $file) = @_; my %stored; return 0 unless (-f "$file.dir" and -f "$file.pag") or -f "file.db"; return 0 unless dbmopen %$session, $file, 0444; %$session = %stored; dbmclose %stored; }
|
|---|