|We don't bite newbies here... much|
Re: DBD::Anydataby rongoral (Beadle)
|on Nov 17, 2004 at 21:41 UTC ( #408602=note: print w/replies, xml )||Need Help??|
I hope that I am not going to be wasting anyone's time here, however, I have not seen this addressed.
I am trying to implement jZed's DBD::AnyData module to parse a flat file db. My test code is:
The "table" consists of one record:
I was getting some wierd results and so went in and activated the debugging code left in place. Specifically, the code is located at line 529 in the open_table sub as follows:
print join("\n", $format,@$file,$createMode), "\n";
This would return the error -
DBD::AnyData::st execute failed: Can't use string ("databases/mothers.tbl") as an ARRAY ref while "strict refs" in use at DBD/AnyData.pm line 529, <GEN0> line 1.
So, I replaced the print and join statement with the following -
This then allows the printing of $file when it was not an array ref.
As I said, I hope that I have not wasted anyone's time with this. And btw, where is that stand alone version? My host does not have this pm or many of the supporting pms.
In Section Module Reviews