It looks like I may have answered my previous question.
% cat listener_test
#!/usr/bin/perl
use strict;
use threads;
use IO::Socket;
my $port = 11444;
my $listener_thread = threads->new(\&listener);
$listener_thread->join();
sub listener {
my $listening_socket = IO::Socket::INET->new(
>First of all, one should note that BerkeleyDB can only handle hashes where
the keys and the values are all strings
I saw DBM::Deep but not sure it would be a better option for such
situation. Anyone recommends using that module for such situations ?
Hi Punit,
On Mon, 6 Aug 2012 15:30:49 +0530
punit jain wrote:
> Hi,
>
> I have a program where a subroutine creates a hash. I want to later
> tie it to BerkleyDB.
First of all, one should note that BerkeleyDB can only handle hashes where the
keys and the values are all strings. Otherwise, be a
Hi,
I have a program where a subroutine creates a hash. I want to later tie it
to BerkleyDB.
my $users = {};
my $entry = {};
my $env = new BerkeleyDB::Env
-Home => $tmp_dir,
-Flags => DB_CREATE|DB_INIT_CDB|DB_INIT_MPOOL
or die "cannot open environment: $BerkeleyDB::Error\