This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Patch to JPL example program
authorBrian Jepson <bjepson@oreilly.com>
Sat, 26 Jun 1999 10:47:45 +0000 (05:47 -0500)
committerGurusamy Sarathy <gsar@cpan.org>
Wed, 7 Jul 1999 08:09:30 +0000 (08:09 +0000)
Message-ID: <Pine.LNX.4.10.9906261044180.659-100000@cx384756-a.sking1.ri.home.com>

p4raw-id: //depot/perl@3639

jpl/JPL_Rolo/JPL_Rolo.jpl

index 3c77fb2..9c019c8 100755 (executable)
@@ -471,7 +471,11 @@ public class JPL_Rolo extends Frame {
         } else {
             $op = ">=";
         }
-        my @data = $rdb->sql("select name, address, city, state, zip, id from cardfile where id $op $nextid");
+        my $sql = "select name, address, city, "  .
+                  "state, zip, id from cardfile " .
+                  "where id $op $nextid";
+       
+        my @data = $rdb->sql($sql);
         $rdb->close("cardfile");
 
         my $status = shift @data;
@@ -493,7 +497,7 @@ public class JPL_Rolo extends Frame {
         } else {
             $index = 0;
         }
-        my($name, $address, $city, $state, $zip, $id) = split (/\0/, $data[$index], 6);
+        my($name, $address, $city, $state, $zip, $id) = @{$data[$index]};
         $self->setCols__ssssss($name, $address, $city, $state, $zip, $id);
 
     }}