$path =~ s{log/.*$}{};
Perl 6 in German
In reply to Re: Manipulating directory paths by moritz in thread Manipulating directory paths by pp