{ $path =~ s{(^|/)(\w+/\.\./|\./)}{$1} and redo } [download]
Oha
In reply to Re: Collapsing paths by oha in thread Collapsing paths by rvosa