here is the snippet from the code: -------- ... my $selectHandle = $dbh->prepare(...); ... $selectHandle->execute(....); my @data = $selectHandle->fetchrow_array(); $self->[1] = \$data; .... --------
and another one: ------- ... my $selectHandle = $dbh->prepare(...); ... $selectHandle->execute(....); $self->[1] = $selectHandle->fetchrow_arrayref(); ... ------ The second one is not correct because it turned out that fetchrow_arrayref() return reference to the same array (as described in man page). Because of that objects contain the same data from the last invocation of fetchrow_arrayref.... The first one seems to be quick and dirty solution, but involves copying an array. Is there a syntax for obtaining the reference to the array returned by the function without copying it first? -- Thanks in advance, Denis -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>