kevind0718 has asked for the wisdom of the Perl Monks concerning the following question:
hello kind monks:
I have a bit of code that needs retrieve an integer from the results a Postgresql function. I am having difficulty getting at the integer returned. How am I supposed to get at the value returned?
many thanks for you attention to this matter.
KDwhich returns the following:$sqlStr = "select createwbparserun( '$directory' , '$filename' ) + "; print $sqlStr. "\n" ; my $sth = $db_in->prepare( $sqlStr ); $sth->execute(); my @aRow = $sth->fetchall_arrayref([0]); print Dumper @aRow; my @ta = $aRow[0]; print Dumper @ta; print " the array: " . $ta[0][0] . "\n" ; ## $wb_runkey = $aRow[0]; print "WORKBOOK run key: " . $wb_runkey . "\n" ;
select createwbparserun( 'C:/dev/HN_optimum/' , 'FM Mk 14 - 60M200007_ +DB200609.xls' ) $VAR1 = [ [ '45' ] ]; $VAR1 = [ [ '45' ] ]; the array: ARRAY(0xcec7960) WORKBOOK run key: 0 Died at parseExcelWB.pl line 197.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: DBI fetchall_arrayref
by NetWallah (Canon) on Dec 17, 2011 at 00:51 UTC | |
by kevind0718 (Scribe) on Dec 17, 2011 at 01:52 UTC | |
by NetWallah (Canon) on Dec 17, 2011 at 04:51 UTC | |
by TJPride (Pilgrim) on Dec 17, 2011 at 03:26 UTC | |
by kevind0718 (Scribe) on Dec 17, 2011 at 01:24 UTC | |
|
Re: DBI fetchall_arrayref
by tobyink (Canon) on Dec 17, 2011 at 13:18 UTC |