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.
Execution of form.pl aborted due to compilation errors.
Press any key to continue . . .


Thank you in advance,

Chris

-- 
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to