Ohad Ohad wrote: > I have a link and want the real file that it is pointing to. > > This means also if I have a linked list of links I want to get the real > file at the end. >
try readlink and -l:
#!/usr/bin/perl -w
use strict;
for(qw(file1 file2 file3)){
print "$_ -> ",readlink,"\n" if -l;
}
__END__
david
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
