I am trying to fetch data like (Select 1 from table
) which returns data with one row and one column.
I dont want to use $sth->fetchrow_array
method to retreive the data in to array. Is there any way to collect the data into scalar variable direclty?
fetchrow_array
andselectrow_array
imply they'll return either the first or last column when called in scalar context, so while the parens inmy ($var) = ...
are normally significant, it should be possible to omit them here. – Tennes