$dirfilename = $url =~ s|http://foo.bar.com/||;