summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Friesel <derf@derf.homelinux.org>2009-08-27 08:24:05 +0200
committerDaniel Friesel <derf@derf.homelinux.org>2009-08-27 08:24:05 +0200
commit6e1436516e31808af66271ead78c73620b8a214f (patch)
tree1c3b2321f8514203ebd88c0fcec59ae08685dfdc
parent64819cc7bf76cf772896238684cdaeb0e546c436 (diff)
Use foreach instead of for with useless $j counter
-rwxr-xr-xbin/efa2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/efa b/bin/efa
index a5de982..bbb0106 100755
--- a/bin/efa
+++ b/bin/efa
@@ -291,7 +291,7 @@ if ($debug) {
$cons = parse_content($raw);
for (my $i = 0; my $con = $cons->[$i]; $i++) {
- for (my $j = 0; my $part = $con->[$j]; $j++) {
+ foreach my $part (@{$con}) {
foreach (@{$part->{extra}}) {
unless ($ignore_info and $_ =~ /$ignore_info/i) {
print "# $_\n";