Karlmann has asked for the wisdom of the Perl Monks concerning the following question:
I appreciate any and all suggestions of a possible solution. Thanks,sub search_files { if ($USE_DBM) { while (($file, $file_path) = each(%f_file_db)) { search_contents($file, $file_path); } } else { my $file_count = 0; open (FILEDB, $DATABASEFILE) || die "Sorry, can't open databas +e file.\n"; foreach (<FILEDB>) { $file_count++; ($f_file_db{$file_count}, $filenames_db{$file_count}, $f_d +ate_db{$file_count},$f_size_db{$file_count},$f_termcount_db{$file_cou +nt},$descriptions_db{$file_count},$titles_db{$file_count},$contents_d +b{$file_count},$alt_text_db{$file_count},$meta_description_db{$file_c +ount},$meta_keywords_db{$file_count},$meta_author_db{$file_count},$li +nks_db{$file_count}) = split /\t/, $_; my $filepath = $f_file_db{$file_count}; search_contents($file_count, $filepath); } close(FILEDB); } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: help, please!
by toolic (Bishop) on Mar 14, 2010 at 02:40 UTC | |
by NetWallah (Canon) on Mar 14, 2010 at 04:54 UTC | |
by Karlmann (Initiate) on Mar 14, 2010 at 05:12 UTC | |
by Karlmann (Initiate) on Mar 14, 2010 at 04:46 UTC | |
by Karlmann (Initiate) on Mar 14, 2010 at 05:03 UTC |