#test-> a.pl
my $file = '/home/joe/test';
if ( -f $file && -l $file )  {
    print readlink( $file ) ;
}
如何获取符号链接文件的绝对路径?
vto*_*nen 12
#!/usr/bin/perl -w
use Cwd 'abs_path';
my $file='/home/joe/test';
if( -f $file && -l $file ) {
    print abs_path($file);
}