I made the change
tie (%hash, 'MLDBM::Easy', 'testmldbm', O_CREAT|O_RDWR, 0640) or die $!; as suggested but that produced another error.
Can't use string ("") as a SCALAR ref while "strict refs" in use at bl
+ah.pl line 12.
Line 12 is print ${$hash{value1}}[2], "\n";
I've tried a few different things but am not sure how to resolve. Is the problem how I'm trying to print it or is it the assignment? If I comment out the print line, the assignment seems to work (no error message).
What confuses me more, I didn't get this error with tie (%hash, 'MLDBM'
| [reply] [Watch: Dir/Any] [d/l] [select] |
| [reply] [Watch: Dir/Any] [d/l] |