diff options
author | Ville Skyttä <ville.skytta@iki.fi> | 2011-07-19 00:06:20 +0300 |
---|---|---|
committer | Ville Skyttä <ville.skytta@iki.fi> | 2011-07-19 00:06:20 +0300 |
commit | c005e942fa1f09c3966e8887dcfb595353fbe8a7 (patch) | |
tree | babacc2dfae9fa1f528342a73fe557195830eece | |
parent | 36809192971fa840c0532440c39ba085bb60c2a4 (diff) | |
download | vdradmin-am-c005e942fa1f09c3966e8887dcfb595353fbe8a7.tar.gz vdradmin-am-c005e942fa1f09c3966e8887dcfb595353fbe8a7.tar.bz2 |
Don't use the Shell module.
From its man page: "It shouldn't be used for production programs.".
-rwxr-xr-x | vdradmind.pl | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/vdradmind.pl b/vdradmind.pl index ef8f56f..eeb486a 100755 --- a/vdradmind.pl +++ b/vdradmind.pl @@ -70,7 +70,6 @@ use Time::Local qw(timelocal); use POSIX qw(:sys_wait_h strftime mktime locale_h); use MIME::Base64 (); use File::Temp (); -use Shell qw(locale); use URI (); use URI::Escape qw(uri_escape); @@ -6574,7 +6573,7 @@ sub config { my @my_locales; if (-f "/usr/bin/locale" && -x _) { push(@my_locales, { id => "", name => gettext("System default"), cur => 0 }); - foreach my $loc (locale("-a")) { + foreach my $loc (`locale -a`) { chomp $loc; push(@my_locales, { id => $loc, |