Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re^3: array references in DBI

by BrianC (Acolyte)
on May 13, 2006 at 18:56 UTC ( [id://549261]=note: print w/replies, xml ) Need Help??


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]

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://549261]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others musing on the Monastery: (2)
As of 2024-06-22 03:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    erzuuli‥ 🛈The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.