Editing
Portal:Databases
(section)
Jump to navigation
Jump to search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
=== Flat files, DBM files, and tied hashes === Before SQL databases became common in every small application, Perl programmers often used simple file-based storage. This included plain text files, CSV-like formats, serialized Perl structures, and DBM-style key-value databases. Perl’s built-in hash data structure made key-value storage feel natural, and Perl’s `tie` mechanism allowed a hash to be connected to an external storage engine. Classic modules such as `SDBM_File`, `NDBM_File`, `GDBM_File`, `AnyDBM_File`, and `DB_File` allowed Perl programs to treat persistent database files almost like ordinary Perl hashes. `AnyDBM_File` exists as a framework for choosing among several DBM packages, including Berkeley DB through `DB_File`, GDBM, SDBM, NDBM, and ODBM.<ref>Perldoc, “AnyDBM_File,” https://perldoc.perl.org/AnyDBM_File, accessed July 3, 2026.</ref>
Summary:
Please note that all contributions to Perl Guilds - Getting Medieval with Perl may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
Perl Guilds - Getting Medieval with Perl:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Navigation menu
Personal tools
Not logged in
Talk
Contributions
Log in
Namespaces
Page
Discussion
English
Views
Read
Edit
Edit source
View history
More
Search
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Special pages
Tools
What links here
Related changes
Page information