Help for this page
my $basedir = "/path/to/directory"; my @candidates = qw ( this and that file ); my @present = grep { -e "$basedir/$_" } @candidates;