commit bdccc5684e54bc1d6f061c3ae78195eadcccd8a5 Author: İsmail Dönmez Date: Tue Aug 17 07:16:34 2004 +0000 Fix details for the last time I hope grrrr svn path=/trunk/kdeextragear-2/konversation/; revision=338505 diff --git a/scripts/weather b/scripts/weather index c881e51..a76242f 100755 --- a/scripts/weather +++ b/scripts/weather @@ -26,6 +26,8 @@ foreach $station (@stations) { # Fix details $i = 0; + chomp $detail; + foreach $det (split(/\n/,$detail)) { chomp $det; if( $i==0 ) { @@ -43,9 +45,9 @@ foreach $station (@stations) { chomp $temperature; chomp $pressure; chomp $wind; - - - if( $detail != /(\s)+/ ) { + + + if( $detail =~ /(\S)+/ ) { $MESSAGE = "Current Weather for %B$city%B : %B$details%B, Temperature: %B$temperature%B, Pressure: %B$pressure%B, Wind: %B$wind%B"; } else {