in reply to accessing file attibutes

try
($dev,$ino,$mode,$nlink,$uid,$gid,$rdev,$size, $atime,$mtime,$ctime,$blksize,$blocks) = stat($file) or die "Can't stat: $!";
to see what's going wrong (likely either the file itself isn't readable for you, or the directory its in isn't executable)

update: ikegami is right. ignore this for now