in reply to Re^2: URI plus File::Spec::Unix -- good idea or bad?
in thread URI plus File::Spec::Unix -- good idea or bad?

however, this will do it :)
print $uri->path_segments( grep { $_ } $uri->path_segments, $file );
uses grep to filter out the empty strings returned by path_segments.

updated: fixed typo