Ok, so I know using a variable of a variable is a bad idea, but in this case I can't even get that to work or find another way. Here is the situation... I am using SpreadSheet::WriteExcel and there is a local variable for the excel sheet name. I want to do this:
$sheet1->write(0 0,"Hello World");
Except that it could be to sheet 1, or sheet 2, or sheet 3, etc. I know this is not correct, but what I want to do is something along the lines of:
$sheet$sheetnumber->write(0 0,"Hello World");
Where I define $sheetnumber in advance.
2006-12-06
15:44:49
·
4 answers
·
asked by
Rob R
2