Skip to content

Instantly share code, notes, and snippets.

@sids
Created July 24, 2008 12:20
Show Gist options
  • Save sids/2125 to your computer and use it in GitHub Desktop.
Save sids/2125 to your computer and use it in GitHub Desktop.
Perl: database handling examples
http://gist.github.com/2125
Examples of database handling in Perl.
#!/usr/bin/perl
use strict; use warnings;
use DB_File;
my %db;
tie %db, 'DB_File', 'dbname';
$db{key} = 'value';
untie %db;
tie %db, 'DB_File', 'dbname';
print "$db{key}\n";
untie %db;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment