in reply to Following symlinks manually

What is wrong with
use Cwd qw( abs_path ); $file = abs_path ($link);