Re: Problem with foreach

2002-02-25 Thread Christian Frantsen
GAH! I should have seen that to :) Well now it works, thanks alot for the help! /Christian - Original Message - From: "Gerald Richter" <[EMAIL PROTECTED]> To: "Christian Frantsen" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Monday, February

Re: Problem with foreach

2002-02-25 Thread Gerald Richter
> > If i try this... > > [$ foreach $row @$result $] > [+ $row +] > [$ endforech $] > > ... the only output is a '0', there should be an ARRAY ref there. > I should have seen this after your first mail... $row is special inside a Embperl page. It's always the row counter and because you are no

Re: Problem with foreach

2002-02-24 Thread Christian Frantsen
om: "Gavin Carr" <[EMAIL PROTECTED]> To: "Christian Frantsen" <[EMAIL PROTECTED]> Sent: Sunday, February 24, 2002 9:33 PM Subject: Re: Problem with foreach > On Sun, Feb 24, 2002 at 07:14:23PM +0100, Christian Frantsen wrote: > > Could someone explai

Re: Problem with foreach

2002-02-24 Thread Gerald Richter
> > @$result is the result of a database query using DBI with > selectall_arraryref() > Normaly both should work. Which version of Embperl do you using? Does it change anything if you make ( ) around the @$result in the second example? Gerald ---