in reply to Measure temperature outside in Perl
Until scientists invent magic you're going to have to resort to one of the more traditional methods for measuring things. If by 'outside the room' you mean out in the open, there are services you can query to find the approximate temperature. Other options include building a wireless temperature sensor which you can query from your code. Think arduino + wireless module.