|Perl: the Markov chain saw|
Getting table dimensionsby steelrose (Scribe)
|on Jun 20, 2005 at 13:32 UTC||Need Help??|
steelrose has asked for the
wisdom of the Perl Monks concerning the following question:
Greetings Wise Monks: I have a program that in part uses a database object to query a database and return it's contents in a table to the originating program.
The problem I'm having is that I then want to loop through all of the rows in that table, which of course can vary. The code I was attempting to use causes a "Can't use string ("2") as an ARRAY ref while "strict refs" in use at..." error.
2 is of course, the correct number of rows in my test scenario. What I'm not grasping is why if perl knows the value, is it not able to insert it into the variable?
Any suggestions are helpful.
If you give a man a fish he will eat for a day.
If you teach a man to fish he will buy an ugly hat.
If you talk about fish to a starving man, you're a consultant.