#!/usr/bin/perl use LWP::Simple; %urls = ( "Whistler" => "http://www.whistlerblackcomb.com/weather/snowreport/index.htm", "Crystal" => "http://www.skicrystal.com/conditions/conditions-main.php", "Stevens" => "http://www.stevenspass.com/Stevens/snowreport.aspx", "Alpental" => "http://www.summit-at-snoqualmie.com/winter/conditions.asp", "Baker" => "http://www.mtbaker.us/index.php/snow-report" ); %new = ( "Whistler" => "New 24 Hours 48 Hours 7 Days Snowbase (\\d+) cm", "Crystal" => "Summit \\d+ F (\\d+)", "Stevens" => "CURRENT CONDITIONS [^ ]+ \\d+ (\\d+)''", "Alpental" => "ALPENTAL \\d+\" (\\d+)", "Baker" => "(\\d+) inch\\S+ new"); %s24 = ( "Whistler" => "New 24 Hours 48 Hours 7 Days Snowbase \\d+ cm (\\d+) cm", "Crystal" => "Summit \\d+ F \\d+ (\\d+)", "Stevens" => "CURRENT CONDITIONS [^ ]+ \\d+ \\d+'' (\\d+)''", "Alpental" => "ALPENTAL \\d+\" (\\d+)", "Baker" => "(\\d+) inch\\S+ in 24"); %fcast = ( "Whistler" => "http://www.whistlerblackcomb.com/weather/forecast/index.htm", "Crystal" => "http://www.nwac.noaa.gov/products/SABNW", "Stevens" => "http://www.nwac.noaa.gov/products/SABNW", "Alpental" => "http://www.wrh.noaa.gov/total_forecast/index.php?zone=waz501&county=wac037&wfo=pdt&dgtl=1&lat=47.425687&lon=-121.37486", "Baker" => "http://www.wunderground.com/US/WA/Glacier.html" ); sub Fetch { my ($name, $url) = @_; print "