出于某种原因,我的代码正在做这个奇怪的事情,fileparse
只打印(字面意思)File::Basename
use strict;
use warnings 'all';
use File::Basename;
...
my $fileName = File::Basename->fileparse($filePath);
print("$filePath\n");
print("$fileName\n");
输出是:
a/b/c/d.bin
File::Basename
我做错了什么?