in reply to Re^4: Manipulating directory paths
in thread Manipulating directory paths

The replacement expression is the second half, so:
$path=~ s{ /log/ .* \z}{/xyz/}xms;

Replies are listed 'Best First'.
Re^6: Manipulating directory paths
by pp (Novice) on Sep 07, 2007 at 19:19 UTC
    thank you