in reply to why does this perl routine error?
You have more than one split in there. If the first split can't split because the search string isn't found then the complete string would be in $url[0]. Consequently $url[1] would be undef. Same for @url1
In Section
Seekers of Perl Wisdom