in reply to Why isn't the obvious dereferencing of the array working?

Square brackets construct a reference to an array. Parens construct a list. Change:
my @temps= [1,2,3];

to:

my @temps= (1,2,3);