perl-embperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kaare Rasmussen <>
Subject DBIx:Recordset q's
Date Sun, 16 Mar 2003 11:57:35 GMT

I'm in doubt if DBIx::Recordset is what I need. It has a lot going for it, for 
one thing it works well with Embperl :-) But I do have some doubt.

I thought I could do something like this:

    $set = DBIx::Recordset -> SetupObject ({
      '!DataSource'   => $db
    $set -> Begin;
    $set -> Update ({%values,
     ('!Table' => 'ar_journal',
      '!Fields' => \%values,
       '\paid'  => "paid + $paid",
      '!PrimKey' => 'ar_id'
    $set -> Commit;
    DBIx::Recordset::Undef ('set');

i.e. use DBIx::Recordset to hide the uglyness of DBI. Insted I find that I 
have to let it glob into my module's vars. Am I using it wrong, or do I 
expect something that it was not intended to do?

Another item is that I tend to get a lot of error reporting, even though I 
think I call it correctly.

Use of uninitialized value in numeric gt (>) at 
/usr/lib/perl5/site_perl/5.6.1/DBIx/ line 3864.
Use of uninitialized value in numeric gt (>) at 
/usr/lib/perl5/site_perl/5.6.1/DBIx/ line 3933.
Use of uninitialized value in anonymous hash ({}) at 
/usr/lib/perl5/site_perl/5.6.1/DBIx/ line 3956.

Kaare Rasmussen            --Linux, spil,--        Tlf:        3816 2582
Kaki Data                tshirts, merchandize      Fax:        3816 2501
Howitzvej 75               Åben 12.00-18.00        Email:
2000 Frederiksberg        Lørdag 12.00-16.00       Web:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message