Hi Sarah >How can I pass an array to Template Toolkit, then loop through it? You need to pass a pointer to array otherwise you get the scalar (length) of the array: $c->stash->{numarray} = \@numtextCaps; Regards, Peter