http://www.perlmonks.org?node_id=839419


in reply to Split Help

You can even use regular expressions and match the exact phrase you want and then use it as file name, Ex:
$url='http://www.abcd.com/search'; if($url=~m/www\.(.*)\//) { $fn="www.$1.ppt"; print $fn; }