t_dog,
My test show that this code works. While I added the "chomp;" line, it made no appreciable difference in the test results. So, if it is not working for you, something else is wrong. Check for typos.
Code:
while (<URL> ) {
$find++ == $rand or next;
chomp;
($id, $go_url) = split /\Q$db_delim\E/;
%link_rec = &get_record($id);
$rec_title = $link_rec{'Title'};
$rec_title =~ s/ /\+/g;
$goto = "http://freesources.com/cgi-bin/FrameIt.cgi?url=$go_url&title=$rec_title";
last;
}