Re: retrieving from opendbm

2006-01-17 Thread Tom Phoenix
On 1/17/06, Anders Stegmann <[EMAIL PROTECTED]> wrote: > Why doesn't this work? > dbmopen(%result_hash, >>BB, 0666); 'Cause it's not Perl. :-) What's >>BB supposed to be? The second parameter to dbmopen is a filename, so that should be a string. (I think you're confusing that with doing something

Re: retrieving from opendbm

2006-01-17 Thread Bob Showalter
Anders Stegmann wrote: Hi! Why doesn't this work? Aargh! *Please* see http://perl.plover.com/Questions4.html You're expecting us to read your mind, so here goes... use strict; use warnings; my %result_hash = qw(foo bar); dbmopen(%result_hash, >>BB, 0666); "BB" needs to be quo

retrieving from opendbm

2006-01-17 Thread Anders Stegmann
Hi! Why doesn't this work? use strict; use warnings; my %result_hash = qw(foo bar); dbmopen(%result_hash, >>BB, 0666); dbmclose(%result_hash); dbmopen(%result_hash, BB, 0666); while (my ($key,$val) = each %result_hash) { print $key,\n; } dbmclose(%result_hash);