in reply to passing array value to hash not happening
my @headers = $ora_sthheader->fetchall_arrayref();
fetchall_arrayref returns a reference to an array, which you're storing in the actual array @headers (ie, @headers contains one element, which is a reference to an array containing the data you want).
Instead, you want:
my $headers = $ora_sthheader->fetchall_arrayref();
Update: Er, I mean you actually want:
my @headers = @{$ora_sthheader->fetchall_arrayref()};
since you later use the regular array (@headers).
Update2: Erp, then again, you also use @$headers and $headers isn't set anywhere. You need to pick one (use $headers and dereference it later) or the other (use @headers and dereference it as you're making the function call). Your choice but you need to be consistant. Again (as jeffa noted), you should be using strict and it would've caught these errors for you.
bbfu
Seasons don't fear The Reaper.
Nor do the wind, the sun, and the rain.
We can be like they are.
|
|---|