Print "Enter a temperature.\n"; chomp ($temp = ); while ($temp != 'q') { push @temp,$temp; print "Enter another temperature.\n"; chomp ($temp=); } print "Goobye see you next time.\n";