Re: array element access

2012-08-27 Thread Shawn H Corey
On Mon, 27 Aug 2012 18:57:08 -0500 Chris Stinemetz wrote: > I am trying to incorporate sprintf to access an element in an array. Not needed. Do this instead: $cp_cell = $data[$cp_cell_index]; -- Just my 0.0002 million dollars worth, Shawn Programming is as much about organization

array element access

2012-08-27 Thread Chris Stinemetz
Hello list, Is this not possible? I am trying to incorporate sprintf to access an element in an array. Is this not possible or am i doing something wrong? $cp_cell = sprintf("$data[%s]", $cp_cell_index); The error: Global symbol "%s" requires explicit package name at form.pl line 167. Executi