avoid $_ in a few other for loops

These were probably not currently buggy, but let's avoid bugs being
introduced by the functions called clobbering $_.
master
Joey Hess 2008-10-06 16:19:54 -04:00
parent fea76a11bc
commit 1e17ea0b65
2 changed files with 6 additions and 2 deletions

View File

@ -97,7 +97,9 @@ sub refresh () { #{{{
if ($config{rcs}) {
IkiWiki::disable_commit_hook();
}
genindex($_) foreach @needed;
foreach my $page (@needed) {
genindex($page);
}
if ($config{rcs}) {
IkiWiki::rcs_commit_staged(
gettext("automatic index generation"),

View File

@ -27,7 +27,9 @@ my @bundle=qw{
sub import { #{{{
hook(type => "getsetup", id => "goodstuff", call => \&getsetup);
IkiWiki::loadplugin($_) foreach @bundle;
foreach my $plugin (@bundle) {
IkiWiki::loadplugin($plugin);
}
} # }}}
sub getsetup { #{{{