in reply to change value in run time
Or you could do something whacky:my $retrieve_ref = $sbh->fetchall_arrayref; for (my $count = 0; $count < @$retrieve_ref; $count++) { $sheet->Range("A$count:B$count")->{Value} = $$retrieve_ref[$count] +; }
and then do the inner loop call as:{ package WakkaWakka; our @ISA = (ref $sheet); sub Range {$_[0]->SUPER::Range("A$_[1]:B$_[1]");} bless $sheet, __PACKAGE__; }
$sheet->Range($count)->{Value} = $$retrieve_ref[$count];
|
|---|