Changeset 12559


Ignore:
Timestamp:
2006-08-25T13:30:12+12:00 (18 years ago)
Author:
davidb
Message:

Perl 5.8 under Windows does not by default support GDBM_File. Use of this
(with tie) has been commented out for now and changed back to the "old
fashioned" way using db2txt (through the unbuild module) to parse
the GDBM database.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl/perllib/classify.pm

    r11994 r12559  
    3232use gsprintf;
    3333
    34 use GDBM_File;
     34#use GDBM_File;
     35use unbuildutil;
    3536
    3637
     
    227228    my ($fulldbname) = @_;
    228229
    229     tie %gdbm_recs, 'GDBM_File', $fulldbname, &GDBM_WRCREAT, 0640;
     230#   tie %gdbm_recs, 'GDBM_File', $fulldbname, &GDBM_WRCREAT, 0640;
     231
     232    my %gdbm_recs;
     233    &unbuildutil::read_gdbm($fulldbname,\%gdbm_recs);
     234
    230235
    231236    # dig out top level doc sections
     
    259264    }   
    260265
    261     untie %gdbm_recs;
     266#    untie %gdbm_recs;
    262267
    263268    return \@all_docs;   
Note: See TracChangeset for help on using the changeset viewer.