From 29ad884d69132fb6f98763b9b78b83b76a974b64 Mon Sep 17 00:00:00 2001 From: timriker Date: Mon, 4 Nov 2002 06:56:16 +0000 Subject: [PATCH] randKey dbm fix git-svn-id: https://svn.code.sf.net/p/infobot/code/trunk@604 c11ca15a-4712-0410-83d8-924469b57eb5 --- blootbot/src/db_dbm.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/blootbot/src/db_dbm.pl b/blootbot/src/db_dbm.pl index 3bfd992..1242cea 100644 --- a/blootbot/src/db_dbm.pl +++ b/blootbot/src/db_dbm.pl @@ -329,7 +329,7 @@ sub randKey { my $rand = int(rand(&countKeys($table) - 1)); my @keys = keys %{$table}; - &dbGet($table, '$select', "@format[0]=@keys[$rand]"); + &dbGet($table, '$select', "$format[0]=$keys[$rand]"); } ##### -- 2.39.5