while ( $path =~ s#(/[^/]+)?/\.(\.)?/#defined($2) ? "/" : "$1/"#e ) {; +} [download]
In reply to Re: Normalized directory paths by mikfire in thread Normalized directory paths by mikfire