use Cwd 'abs_path'; print abs_path('/home/projects/..');