+ $last = '' if($last eq '.');
+
+ if($last eq '..')
+ {
+ $first = upper_path($first);
+ $last = '';
+ }
+ elsif($^O eq 'MSWin32' && $last =~ m!^\.\.\.+$!)
+ {
+ # Windows allows to go upwards in a path using things like
+ # "..." and "...." and so on
+
+ my $count = length($last)-1;