summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mageia.org>2013-03-15 18:43:15 +0000
committerThierry Vignaud <tv@mageia.org>2013-03-15 18:43:15 +0000
commit3992740ddadeaafa924976fee26b4f7c6c2412ea (patch)
tree455837b484a30cbf4c74965c3acdf124fb902368 /bin
parent5d88d92e34d8bb7455552060fe96039c0385fa1a (diff)
downloaddrakguard-3992740ddadeaafa924976fee26b4f7c6c2412ea.tar
drakguard-3992740ddadeaafa924976fee26b4f7c6c2412ea.tar.gz
drakguard-3992740ddadeaafa924976fee26b4f7c6c2412ea.tar.bz2
drakguard-3992740ddadeaafa924976fee26b4f7c6c2412ea.tar.xz
drakguard-3992740ddadeaafa924976fee26b4f7c6c2412ea.zip
perl_checker: write "foreach" instead of "for"
Diffstat (limited to 'bin')
-rwxr-xr-xbin/drakguard6
1 files changed, 3 insertions, 3 deletions
diff --git a/bin/drakguard b/bin/drakguard
index 3c5e254..c92f1be 100755
--- a/bin/drakguard
+++ b/bin/drakguard
@@ -665,12 +665,12 @@ sub apply_block_program() {
if ($program_control) {
my @original_list = read_program_list($url_lists[2]{file});
my @orig_list = read_program_list($url_lists[2]{file});
- for (@original_list) {
+ foreach (@original_list) {
s/\s(.*)//;
}
my @actual_list = list_get_entries($url_lists[2]{list});
my @act_list = list_get_entries($url_lists[2]{list});
- for (@actual_list) {
+ foreach (@actual_list) {
s/\s(.*)//;
}
#code to make diff bettween vectors
@@ -745,7 +745,7 @@ sub apply_block_program() {
}
else {
my @original_list = list_get_entries($url_lists[2]{list});
- for (@original_list) {
+ foreach (@original_list) {
s/\s(.*)//;
}
#restore the original file permissions