Received: from cms-smtp.state.il.us (cms-smtp.state.il.us [163.191.183.101]) by hub.org (8.9.3/8.9.3) with ESMTP id OAA01616 for ; Tue, 22 Jun 1999 14:44:57 -0400 (EDT) (envelope-from robert_hiltibidal_at_cms08405@ccmailgw.state.il.us) From: robert_hiltibidal_at_cms08405@ccmailgw.state.il.us Received: from ccmailgw.state.il.us (ccmailgw.state.il.us [163.191.171.80]) by cms-smtp.state.il.us (2.5 Build 2639 (Berkeley 8.8.6)/8.8.4) with SMTP id NAA02452; Tue, 22 Jun 1999 13:41:00 -0500 Received: from ccMail by ccmailgw.state.il.us (ccMail Link to SMTP R6.01.01) id AA930077109; Tue, 22 Jun 99 13:45:11 -0600 Message-Id: <9906229300.AA930077109@ccmailgw.state.il.us> X-Mailer: ccMail Link to SMTP R6.01.01 Date: Tue, 22 Jun 99 13:44:48 -0600 To: , Subject: Re[2]: [INTERFACES] Perl Interface MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Afternoon, intriguing... however, how do I go to the next row? I tried a variation earlier that looked like: while (@row = $result->fetchrow) { $string = join("\|",@row); } $result = $conn->getResult; I've also tried : while ($result = $conn->getResult) { while (@row = $result->fetchrow) { $string = join("\|",@row); } push(@set,$string); } The goal is to get multiple rows into a single array. The answer is probally very simple. Thx, -Rob ______________________________ Reply Separator _________________________________ Subject: Re: [INTERFACES] Perl Interface Author: James Olin Oden at INTERNET Date: 06/22/1999 2:24 PM Just change that $ret to @ret, and it will return the entire row. After that your code becomes something like: $query = "Select username,password,knickname,emailaddy,forward,ip,date from temp"; $conn = Pg::connectdb("dbname=$dbname"); $result = $conn->exec($query); while (@row = $result->fetchrow) { @row = join("|", @row); }