Windows-like registry for Linux?

Kevin D. Clark kclark at mtghouse.com
Wed Feb 15 11:28:01 EST 2006


Incidently, if you're looking for a very fast way to prototype such use 
of a DB (or even to deploy for real...), I recommend Perl, which has 
always had good support for this type of thing:

   #!/usr/bin/perl -w

   use strict;
   use DB_File;

   my(%favorite_color);

   tie(%favorite_color, "DB_File", "favcolordb")
     || die "tie problem: $!";

   $favorite_color{"moe"}   = "red";
   $favorite_color{"larry"} = "green";
   $favorite_color{"curly"} = "blue";

   untie(%favorite_color)
     || die "untie problem: $!";

   __END__

Regards,

--kevin
-- 
GnuPG ID: B280F24E



More information about the gnhlug-discuss mailing list