On 10/14/07, Vidhi <[EMAIL PROTECTED]> wrote: > I need to open a gdbm file and search for a word in it.
You can use the tie() function to connect a hash to the GDBM file, more or less like this: use GDBM_File; tie my %DATA, "GDBM_File", $filename, &GDBM_READER, 0; Then you can examine the hash in the usual ways. If you're looking for a known key, use exists() or simply look it up; otherwise use each() to step through the entire hash until you find (or fail to find) what you want. Good luck with it! --Tom Phoenix Stonehenge Perl Training -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/