in reply to Re: Delete files if they match help!
in thread Delete files if they match help!

I like this:
while (my $row = $sth->fetchrow_hashref()) { for my $imgfile (map $row->{"image_$_"}, 1..4) { unlink "../../pics/$imgfile"; } }
But I will move the files somewhere else instead of deleting it.