Okay, I replaced the line as suggested from
@EasySetTableNames = @{$sqlCmd->selectcol_arrayref($sqlStatement)};
to
@EasySetTableNames = @{$dbh->selectcol_arrayref($sqlStatement)};
and now get this error:
Can't use an undefined value as an ARRAY reference at C:\temp\test.pl
+line 29 (#1)
(F) A value used as either a hard reference or a symbolic referenc
+e must be a defined value. This helps to delurk some insidious error
+s.
I thought I had defined the array, but as mentioned before I'm baffled as to how Perl handles arrays and strings and going between them.
Do you believe in miracles? Yes!