#!/perl/bin/perl print "Content-Type: text/html\015\012\015\012"; @cities = ("Seattle", "Odense", "Venice", "Lewes", "Olso"); # Here its no problem print "\n"; print "City Name\n"; foreach $city (sort @cities){ print ''.$city.''."\n"; } print "\n"; # But here is my nightmare $test="City Name"; foreach $city (sort @cities){ print "".$city.""; } print "\n"; print $test;