Walt Mankowski on 25 Nov 2003 13:36:00 -0500


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: Why can't an array element be used as the index var in foreach?


On Tue, Nov 25, 2003 at 01:31:54PM -0500, David Steuber wrote:
> I even tried the more verbose 'for ($c[0] = 0; $c[0] < 5; $c[0]++)' with
> no success.  Perl would have none of it.

Then you must have some other bug in your program, since that's
exactly what I *did* have to do to work around the problem, and it
worked fine for me.

Attachment: pgprN8LZ59Vju.pgp
Description: PGP signature