in reply to Re: Stripping parts of paths from directory names
in thread Stripping parts of paths from directory names

Yep theres another solution out there and its File::Spec, part of a fairly standard distribution.

The line wanted is $file_path = File::Spec->abs2rel( $file_path, $path );