Changeset 18441 for gsdl/trunk/perllib/dbutil.pm
- Timestamp:
- 2009-02-01T14:36:22+13:00 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
gsdl/trunk/perllib/dbutil.pm
r17476 r18441 320 320 my $infodb_map = shift(@_); 321 321 322 open (PIPEIN, "db2txt \"$infodb_file_path\" |") || die "couldn't open pipe from db2txt \n";322 open (PIPEIN, "db2txt \"$infodb_file_path\" |") || die "couldn't open pipe from db2txt \$infodb_file_path\"\n"; 323 323 my $infodb_line = ""; 324 324 my $infodb_key = ""; … … 340 340 $infodb_value .= $infodb_line; 341 341 } 342 } 343 344 close (PIPEIN); 345 } 346 347 sub read_infodb_keys_gdbm 348 { 349 my $infodb_file_path = shift(@_); 350 my $infodb_map = shift(@_); 351 352 open (PIPEIN, "gdbmkeys \"$infodb_file_path\" |") || die "couldn't open pipe from gdbmkeys \$infodb_file_path\"\n"; 353 my $infodb_line = ""; 354 my $infodb_key = ""; 355 my $infodb_value = ""; 356 while (defined ($infodb_line = <PIPEIN>)) 357 { 358 chomp $infodb_line; # remove end of line 359 360 $infodb_map->{$infodb_line} = 1; 342 361 } 343 362
Note:
See TracChangeset
for help on using the changeset viewer.