Chinaunix
标题:
如何知道连接的目标
[打印本页]
作者:
fkiori
时间:
2006-01-20 16:30
标题:
如何知道连接的目标
使用 -l $file
测试符可以知道是不是一个连接
如果是连接的话,怎么知道它连接到什么地方呢
作者:
怒剑狂啸
时间:
2006-01-21 13:10
use File::Spec::Link;
my $file = File::Spec::Link->linked("$link"); #$link为链接名
print $file;
复制代码
作者:
fkiori
时间:
2006-01-22 16:54
thanks
欢迎光临 Chinaunix (http://bbs.chinaunix.net/)
Powered by Discuz! X3.2