1
对于带有'@'字符的文件名,perl的stat()似乎不起作用。perl stat()不适用于带有特殊字符的文件名
-rw-r--r-- 1 root root 0 Mar 1 17:33 /tmp/[email protected]
使用
的Perl命令:
#perl -e 'my $modtime = (stat("/tmp/[email protected]"))[9]|| die "$!"'
No such file or directory at -e line 1.
谁能帮助如何逃避这些字符的stat()?
试图逃避'@''如\ @'。 – 2013-03-01 12:18:54