Xavier Noria wrote:
On Jan 19, 2007, at 12:55 PM, Richard Jones wrote:

while ( my $ref = $sth->fetchrow_arrayref() ) { # $ref is arrayref
  push @$ref, 1; # line xx
}

dies with 'Modification of read-only value attempted at .. line xx'

Yes, that reference has a flag READONLY turned on, this is a dump of an example I ran to figure this out (attached below):

OK, thanks - good to know it's a DBI thing rather than something I did. Pushing onto an array instead of an arrayref works just as well in this context so it's not a major problem.


--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/


Reply via email to