Keep It Simple, Stupid | |
PerlMonks |
(crazyinsomniac) Re: Exists with DBMby crazyinsomniac (Prior) |
on Apr 14, 2002 at 10:36 UTC ( [id://158913]=note: print w/replies, xml ) | Need Help?? |
I even checked the Perl Cookbook and it reports that this is a valid function.Did the author of the book write the AnyDBM_File module? What version of the module is used in the book? I would greatly question any claims made in some book about some module. I would sugguest you take the advice of tilly (a rather knowledgable monk, who advises wisely often) and rely on your local documentation for definitive information. Open up AnyDBM_File.pm in your favorite editor or pod viewer and read to see what the module actually does. Which database module are you actually using? (NDBM_File, DB_File, GDBM_File, SDBM_File, ODBM_File ...) The Perl Cookbook is probably speaking about the existence of the perl built-in function exists, in any case, rely on your local documentation, and be as explicit and specific as possible when asking questions, and provide sample data. Does your database key your are looking for actually exist in the database?
In Section
Seekers of Perl Wisdom
|
|