in reply to Re^2: array references in DBI
in thread array references in DBI

Sorry, I should have been much more specific, as it's probably also my confusion as to how DBI works. If I do something like:

my $ratest = $dbh->selectrow_arrayref($sql); my $testorder = pop @$ratest;

I get an error: Modification of a read-only value attempted

Replies are listed 'Best First'.
Re^4: array references in DBI
by ruzam (Curate) on May 14, 2006 at 15:23 UTC
    Did selectrow_arrayref() actually return an array ref? If the $sql failed, $ratest will be 0 (a literal).
      Yes. I can access the data via, eg.
      $ratest->[0]