Fix another smart match/! binding problem

This commit is contained in:
Colin Kuskie 2010-09-22 12:04:19 -07:00
parent 93b30c6ac2
commit 636bde7131

View file

@ -140,7 +140,7 @@ sub getValue {
my @files = @{$storage->getFiles};
my @images = grep{$storage->isImage($_)} @files; # Put all filenames that isImage returns true for into @images
if ($self->get('forceImageOnly')) {
$storage->deleteFile($_) for grep{ ! $_ ~~ @images } @files; # Search @files for filenames that are not in @images and delete them
$storage->deleteFile($_) for grep{ ! ($_ ~~ @images) } @files; # Search @files for filenames that are not in @images and delete them
@files = @images;
}