Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: Perl DBI NULL and undef

by mje (Curate)
on Sep 03, 2012 at 15:27 UTC ( #991453=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    SQL> create table mje (a int, b varchar(10) null default null);
    SQLRowCount returns -1
    ...
    +------------+-----------+
    SQLRowCount returns -1
    3 rows fetched
    
  2. or download this
    perl -MDBI -le 'my $h = DBI->connect; use Data::Dumper; my $r = $h->se
    +lectall_arrayref("select * from mje");print Dumper($r);'
    $VAR1 = [
    ...
                undef
              ]
            ];
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (15)
As of 2015-07-02 13:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (40 votes), past polls