in reply to Re: DBM Deep Hash of Hash of Hash of array
in thread DBM Deep Hash of Hash of Hash of array
Hi,
Good to see that someone remembers that I have been through some other problem :-)
I have bypassed Fmode by removing the reference. So far that seems to be ok. because the file is not being used by any other program. The other problem that I had earlier was that I was not able to access the DBM deep object in a method to push data into or read from it.
By chance I found out the weirdest way to fix it. My method/function has several input variables. If my DBM deep object is the last variable to be passed, it fails to recognize it, but the moment I made it the first variable in the list of 7 input variables, I could access it just fine.
As for the code
# Making an entry in the errordb push (@{$errordb->{$_BranchName}->{MissingTitle}->{url}}, $_URL); #Increasing the counter $errordb->{$_BranchName}->{MissingTitle}->{count} +=1;
This adds the URL into the hash.
Later on I access this is another method to output the values on a html page
foreach $testurl (@{$errordbref ->{$_BranchName}->{$ThingsToPrint}->{ +url}}) print $testurl;
The code is fairly straightforward. I think the problem is in the size of the object
A database is not available and hence all these attempts. Basically the program is a spider for my website (over 40000 pages) to find errors and display that on a html page.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: DBM Deep Hash of Hash of Hash of array
by dragonchild (Archbishop) on Apr 16, 2008 at 17:22 UTC | |
|
Re^3: DBM Deep Hash of Hash of Hash of array
by pc88mxer (Vicar) on Apr 16, 2008 at 17:43 UTC | |
by dragonchild (Archbishop) on Apr 16, 2008 at 17:55 UTC |