#!/usr/bin/perl # curtemp.pl by Artem Litvinovich use LWP::Simple; my ($zip) = @ARGV?@ARGV:("10027"); get("http://www.weather.com/weather/local/".$zip) =~ /Feels Like.*?>(. ++?)&/; print $1?"Feels like $1".chr(176)."F at $zip\n":"Temperature informati +on not available for $zip\n";
In reply to local weather by ArtemZ1
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |