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

I tried the following: $path=~ s{ /log/ .* \z/xyz}{/}xms
but got an error.

Replies are listed 'Best First'.
Re^5: Manipulating directory paths
by ikegami (Patriarch) on Sep 07, 2007 at 19:05 UTC
    The replacement expression is the second half, so:
    $path=~ s{ /log/ .* \z}{/xyz/}xms;
      thank you