my @hex_locations = ("$FindBin::Bin/../../../project/platform-aa-full/bb",
"$FindBin::Bin/../../../project/platform-aa-base/bb");
如何在上面的代码中使用通配符匹配任何目录与project / platform-aa- *?
答案 0 :(得分:2)
使用glob
my @hex_locations = glob("$FindBin::Bin/../../../project/platform-aa-*/bb");