perl-embperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Todd White <tmwh...@merit.edu>
Subject Re: $cnt doesn't work for me as advertised
Date Thu, 27 Sep 2007 12:22:58 GMT
I shouldn't have to use $row and $col.  And I shouldn't have to be working
with an array of an array.

--Todd


On Wed, 26 Sep 2007, Ben Kim wrote:

> On Wed, 26 Sep 2007, Todd White wrote:
>
> I think the $cnt does not work.
>
> You need to use $row and $col. I think it assumes array of array (perldoc
> perllol) for $col or $maxcol to work.
>
> [-
>   @test_arr = (['A', 'B', 'C'], ['D', 'E', 'F'], ['G', 'H'] );
> -]
> <table>
> <tr>
>   <td>[+ $test_arr[$row][$col] +]</td>
> </tr>
> </table>
>
> ABC
> DEF
> GH
>
> If you set $maxcol = 2, then it will be
> AB
> DE
> GH
>
> I guess even if $cnt is not broken, it will not work for 2 dimensional arrays.
> Please correct me if I'm wrong.
>
>
> Regards,
>
> Ben K.
> Developer
> http://benix.tamu.edu
>

---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
For additional commands, e-mail: embperl-help@perl.apache.org


Mime
View raw message