From f6f93ec2a189172a41063a2909a3e7dfb8c00f4c Mon Sep 17 00:00:00 2001 From: Simon McVittie Date: Sun, 29 Jun 2014 17:28:46 +0100 Subject: Fix warning "Use of my $_ is experimental" --- IkiWiki/Plugin/album.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/IkiWiki/Plugin/album.pm b/IkiWiki/Plugin/album.pm index f42078b8b..c0ccc08c7 100644 --- a/IkiWiki/Plugin/album.pm +++ b/IkiWiki/Plugin/album.pm @@ -249,7 +249,7 @@ sub collect_images { } my %sections; - my $_; # localize iterator variable + local $_; # localize iterator variable my @remaining = @{$pagestate{$album}{album}{viewers}}; @@ -350,7 +350,7 @@ sub preprocess_albumsection { my %params=@_; my $album = $params{page}; my $filter = $params{filter}; - my $_; + local $_; # remember the filter for this section so the "remaining images" section # won't include these images (this needs to be run in the scan stage -- cgit v1.2.3