Skip to content

Instantly share code, notes, and snippets.

@sids
Created July 24, 2008 12:20
Show Gist options
  • Select an option

  • Save sids/2125 to your computer and use it in GitHub Desktop.

Select an option

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