The hsr-omega gene of Drosophila melanogaster produces RNA products both constitutively and at elevated levels in response to heat stress. A single-nucleotide difference in this gene that has been detected using denaturing gradient gel electrophoresis (DGGE) is responsible for an hsr-omega(a/b) polymorphism, and selection experiments have indicated an association between the hsr-omega(a) allele and susceptibility to heat stress. Since allele frequency estimates for population surveys using PCR and DGGE for single flies would be relatively time-consuming and expensive, we here develop a quantitative competitive-PCR method using mass-grind genomic DNA preparations for this purpose. Geographical and temporal variation of allele frequency at the hsr-omega locus in Australian populations of D. melanogaster are examined. Regular samples from a southern population through a summer season suggested stability of hsr-omega(a) frequency. Field populations sampled from a similar to 2,250 km north-south transect along eastern Australia revealed a strong positive association between the frequency of hsr-omega(a) and latitude, and marked spatial autocorrelation. Using appropriate analyses, strong associations between population differences in hsr-omega(a) frequencies and differences in temperature and rainfall measures, after controlling for latitudinal differences, support the idea that the dine in hsr-omega(a) frequency may be attributable to some form of climatic selection.