readlink reads the link and returns the true file name that a link points to : readlink « File « Perl






readlink reads the link and returns the true file name that a link points to

      

$true_file = readlink($file);

   
    
    
    
    
    
  

Related examples in the same category

1.Print symbolic links.
2.The readlink function returns the value of the symbolic link