> perl ch-1.pl Path to parse: /elephant/dog/cat/../phoenix/../mouse/ Canonical path: /elephant/dog/mouse