Thanks tracey, that helped a lot.
I've been able to implement an incrementing for loop even though i don't think i really need to :) But for some reason I get an error when running this bit of code.
for my $i (0..$#records)
{
chomp($records[$i]);
($rectitle, $reckeywords, $recurl) =...