Perl functions references- dbmopen Function - Perl Scripting

what is Perl dbmopen function?


This function Binds the database file specified by EXPR to the hash HASH. If the database does not exist, then it is created using the mode specified by MODE. The file EXPR should be specified without the .dir and .pag extensions. Use is now deprecated in favor of tie and one of the tied DBM hash modules, such as SDBM_File.


Following is the simple syntax for this function −

Return Value

This function returns 0 on failure and 1 on success.
Note that functions such as keys and values may return huge lists when used on large DBM files. You may prefer to use the each function to iterate over large DBM files.


Following is the example code showing its basic usage −

All rights reserved © 2018 Wisdom IT Services India Pvt. Ltd Protection Status

Perl Scripting Topics