jling has asked for the wisdom of the Perl Monks concerning the following question:

Hi all, I'm looking for some module that allows me to search for keys with Regex in a BerkeleyDB file. Your help is appreciated. Thanks

Replies are listed 'Best First'.
Re: BerkeleyDB & Regex
by BrowserUk (Patriarch) on Jun 02, 2004 at 18:02 UTC

    You could wrap RegexpHash around DB_file. It wouldn't be quick though.


    Examine what is said, not who speaks.
    "Efficiency is intelligent laziness." -David Dunham
    "Think for yourself!" - Abigail
Re: BerkeleyDB & Regex
by duff (Parson) on Jun 02, 2004 at 18:09 UTC
    tie the DB file to a hash and then just do something like:
    @keys_i_want = grep /$re/, keys %hash_tied_to_db;
Re: BerkeleyDB & Regex
by Anonymous Monk on Jun 02, 2004 at 18:00 UTC
    Maybe you could search CPAN for a module?