my @list = `ls -1 /dist/folder/ABC*`;$task->AddMultipleFiles(\@list, "");
my $filename = "ABC_doc";my $prefix = $filename;my $prefix =~ m|^([A-za-z]*_)|;my $prefix = $1 # now prefix has any string of charecters upto the first '_'my @list = `ls -1 /dist/folder/$prefix\.*`;$task->AddMultipleFiles(\@list, "");
$task->AddMultipleFiles(\@list, "");
I'm not sure that buys ShovelFace anything (what an interesting username!) only because s/he needs to include only some files -- let's say those that start with a given string -- so, a loop structure would be needed if opendir() were used.
my @flist = <$path/${prefix}_*>