/[webpac]/branches/ffzg/all2xml.pl
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /branches/ffzg/all2xml.pl

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 321 by dpavlin, Sun Apr 18 01:03:27 2004 UTC revision 458 by dpavlin, Tue Sep 21 16:53:44 2004 UTC
# Line 637  foreach my $database ($cfg->Sections) { Line 637  foreach my $database ($cfg->Sections) {
637          my $lookup_file = $cfg -> val($database, 'lookup_newfile'); # optional          my $lookup_file = $cfg -> val($database, 'lookup_newfile'); # optional
638          if ($lookup_file) {          if ($lookup_file) {
639                  #tie %lhash, 'GDBM_File', $lookup_file, &GDBM_NEWDB, 0644;                  #tie %lhash, 'GDBM_File', $lookup_file, &GDBM_NEWDB, 0644;
640                    if (! -e $lookup_file) {
641                            open(LOOKUP, "> $lookup_file") || die "can't create $lookup_file': $!";
642                            close(LOOKUP);
643                    }
644                  tie %lhash, 'TDB_File', $lookup_file, TDB_CLEAR_IF_FIRST, O_RDWR, 0644;                  tie %lhash, 'TDB_File', $lookup_file, TDB_CLEAR_IF_FIRST, O_RDWR, 0644;
645                  print STDERR "creating lookup file '$lookup_file'\n";                  print STDERR "creating lookup file '$lookup_file'\n";
646                  # delete memory cache for lookup file                  # delete memory cache for lookup file

Legend:
Removed from v.321  
changed lines
  Added in v.458

  ViewVC Help
Powered by ViewVC 1.1.26