diff options
| author | David Leadbeater | 2015-01-10 17:26:59 +0000 |
|---|---|---|
| committer | David Leadbeater | 2015-01-10 17:26:59 +0000 |
| commit | 1bae3cffef57d4d46d0230aa4f44cc52c7671b93 (patch) | |
| tree | 03d3b85d868a72a6b162c7dca8ea7c0173510618 /scripts/weather.pl | |
| parent | 6fa0cda4b3f7d54d5835fe580795e4f35980cc28 (diff) | |
| parent | 55e10f5aeb6d0559518623a432263d4a73d7614b (diff) | |
| download | scripts.irssi.org-1bae3cffef57d4d46d0230aa4f44cc52c7671b93.tar.bz2 | |
Merge pull request #83 from obfuscoder/perlcritic-s-z
Fix perlcritic issues for all scripts starting with s to z
Diffstat (limited to 'scripts/weather.pl')
| -rw-r--r-- | scripts/weather.pl | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/scripts/weather.pl b/scripts/weather.pl index 57163dc..7c62457 100644 --- a/scripts/weather.pl +++ b/scripts/weather.pl @@ -22,6 +22,7 @@ # $4 is current conditions (windy or partly cloudy) # - You have to modify this line to the path of your LWP-dir +use strict; use lib '/usr/lib/perl5/vendor_perl/5.6.1'; use Irssi; use Irssi::TextUI; @@ -146,7 +147,7 @@ sub get_weather_for_status { chomp($temperature); chomp($feelslike); chomp($description); - open STATUS_FILE, ">.irssi/weather.status" or die "Can't write to status file: $!"; + open STATUS_FILE, ">", ".irssi/weather.status" or die "Can't write to status file: $!"; print STATUS_FILE "$temperature,$feelslike,$description"; close STATUS_FILE; } @@ -154,7 +155,7 @@ sub get_weather_for_status { # Status bar information sub theme_format { - open GET_STATUS, "<.irssi/weather.status" or die "Can't open status file: $!"; + open GET_STATUS, "<", ".irssi/weather.status" or die "Can't open status file: $!"; my $themed = ""; my $themecmd = ""; |
