my ($pagename) = $url =~ m{([^/]+)$}; [download]
In reply to Re: Extracting Page Name by choroba in thread Extracting Page Name by JimStone