in reply to Re: Passing array of references to Templatein thread Passing array of references to Template
FOR and FOREACH are completely interchangeable. I prefer the former, but either is fine.
I would suggest that you convince us (or yourself, at least) that $results contains what you expect, e.g. using Data::Dumper.
Update: it occurs to me that @sendoff is never defined. Did you really run this using strict? You don't seem to need $sendoff or @sendoff at all: just write
$template->param('results' => $results);
my $results = &return_values;
my @sendoff = @$results;
DejaVu Sans Mono
Droid Sans Mono
Envy Code R
Source Code Pro
The default, whatever it is
Results (61 votes). Check out past polls.