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