Your problem starts with my $tableDimensions = @$futureTable;, by dereferencing the arrayref, and assigning it to a scalar, $tableDimensions now contains the number of elements in the array, so that when you call my $numRows = $tableDimensions->[0]; you try to dereference an integer. It looks like what you actually intended to do was to determine the number of rows that were returned, and you've added an extra step. If I'm reading your code right you actually just need this:
my $Table = $dbObject->getTable; my $numRows = @$futureTable; # this is a more compact way to write the same for loop for my $timesThru (0 .. $numRows) {
| We're not surrounded, we're in a target-rich environment! |
|---|
In reply to Re: Getting table dimensions
by jasonk
in thread Getting table dimensions
by steelrose
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |