At 18.23 -0400 1999.05.02, Richard Gordon wrote: >> >> tie VARIABLE, CLASSNAME, LIST >> >>So: >> >> tie(%thehash, 'AnyDBM_File', $filename, $flags, $permissions) or die $!; > >I typed instead of pasted and there isn't actually a space between O_ >and RDWR in the script, but you have a good eye in catching that in >the post. Are you saying that the statement should reference >variables for flags and permissions? I was going by some stuff in the >Camel book in doing it as I did. No, I was noting you also missed the 'AnyDBM_File' thing in your tie statement, the CLASSNAME. You can use variables for flags, I rarely do, those were just placeholders. >I wasn't using strict but had -w on. If you mean using "or die" for >error checking, I am using || die "Couldn't tie hash: $!;" That's fine (though, stylistically, I prefer 'or' instead of '||' when I am saying "do X or Y", whereas I use '||' for "Z = X || Y", but if you have parens around your tie() arguments, '||' works just fine. But I am babbling now, so ignore me :). -- Chris Nandor mailto:pudge@pobox.com http://pudge.net/ %PGPKey = ('B76E72AD', [1024, '0824090B CE73CA10 1FF77F13 8180B6B6']) ==== Want to unsubscribe from this list? ==== Send mail with body "unsubscribe" to macperl-anyperl-request@macperl.org